Component Detail

AppShell

Application shell with sidebar, flashes, header, and content regions.

Example

References

Template
frontend/ui_impl.go
Golden
N/A

Go (Marionette) Example

This implementation example uses Marionette in Go. Source: docs/site-astro/public/examples/go/app-shell.go

package goexamples

import (
	mb "github.com/YoshihideShirai/marionette/backend"
	mf "github.com/YoshihideShirai/marionette/frontend"
)

func RegisterAppShellExample(app *mb.App) {
	app.Page("/app-shell", func(ctx *mb.Context) mf.Node {
		return mf.AppShell(mf.AppShellProps{
			Header:  mf.H2(mf.Text("Workspace")),
			Content: mf.TextComponent(mf.TextProps{Text: "Main content rendered inside AppShell.", Tone: "muted"}),
		})
	})
}