package examples import "github.com/Tend-Stack/TendUI/v2026/components" templ ExampleSiteHeader() { @components.SiteHeader(components.SiteHeaderProps{ Brand: exampleSiteHeaderBrand(), BrandLabel: "Studio home", BrandHref: "/catalog", Items: []components.SiteHeaderItem{ {Label: "Docs", Href: "/catalog"}, {Label: "Components", Href: "/catalog/siteheader", Current: true}, {Label: "Examples", Href: "/dashboard", AllLabel: "All examples", Groups: []components.NavGroup{ {Title: "Layouts", Items: []components.NavItem{{Label: "Dashboard", Href: "/dashboard"}, {Label: "Workspace", Href: "/workspace"}}}, {Title: "Forms", Items: []components.NavItem{{Label: "Form lab", Href: "/forms"}, {Label: "Form wizard", Href: "/wizard"}}}, }}, {Label: "Playground", Href: "/playground"}, }, Actions: components.ThemeToggle(components.ThemeToggleProps{IconOnly: true}), }) One sticky header for every page. Narrow the window to see the compact menu. Back to SiteHeader } templ exampleSiteHeaderBrand() { Studio }
One sticky header for every page. Narrow the window to see the compact menu.