appshell

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppShellFixtures = gx.Fixtures[AppShellProps]{
	"Default": {
		Title: "Acme",
		Nav: sidebar.SidebarGroup(sidebar.SidebarGroupProps{Children: gx.Frag(
			sidebar.SidebarGroupLabel(sidebar.SidebarGroupLabelProps{Children: gx.Text("Menu")}),
			sidebar.SidebarGroupContent(sidebar.SidebarGroupContentProps{Children: sidebar.SidebarMenu(sidebar.SidebarMenuProps{Children: gx.Frag(
				sidebar.SidebarMenuItem(sidebar.SidebarMenuItemProps{Children: sidebar.SidebarMenuButton(sidebar.SidebarMenuButtonProps{Href: gx.URL("/"), Active: true, Children: gx.El("span", nil, gx.Text("Home"))})}),
				sidebar.SidebarMenuItem(sidebar.SidebarMenuItemProps{Children: sidebar.SidebarMenuButton(sidebar.SidebarMenuButtonProps{Href: gx.URL("/docs"), Children: gx.El("span", nil, gx.Text("Docs"))})}),
			)})}),
		)}),
		Footer:   gx.El("span", gx.Attrs{{Key: "class", Value: "px-2 text-xs text-sidebar-foreground/70"}}, gx.Text("v0.1.0")),
		Children: gx.Text("Page content."),
	},
}

Functions

func AppShell

func AppShell(p AppShellProps) gx.Node

Types

type AppShellProps

type AppShellProps struct {
	// Title is the app name. It shows in the sidebar header and in the page header.
	Title string
	// Nav is the primary navigation. It renders in the sidebar content.
	Nav gx.Node
	// Footer is the content of the sidebar footer. A nil value renders no footer.
	Footer gx.Node
	// Children is the content of the main area.
	Children gx.Node
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL