Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
Constants ¶
View Source
const MobileSheetPanelID = "ui8kit-mobile-sheet-panel"
MobileSheetPanelID is the dialog surface referenced by aria-controls on the menu trigger.
View Source
const MobileSheetTriggerID = "ui8kit-mobile-sheet-trigger"
MobileSheetTriggerID opens the mobile navigation dialog in the shell header.
Variables ¶
This section is empty.
Functions ¶
func Header ¶ added in v0.2.0
func Header(props HeaderProps) templ.Component
func Shell ¶ added in v0.2.0
func Shell(props ShellProps) templ.Component
func Sidebar ¶ added in v0.2.0
func Sidebar(props SidebarProps) templ.Component
Types ¶
type HeaderProps ¶
type HeaderProps struct {
Title string
Extra templ.Component
Trailing templ.Component
ThemeToggle ThemeToggleProps
ThemeToggleComponent templ.Component
}
HeaderProps configures the top header bar.
type ShellProps ¶
type ShellProps struct {
Title string // HTML <title>
Lang string // HTML lang attribute (defaults to "en")
BrandName string // sidebar brand label (defaults to "App")
Active string // current path for nav highlight
CSSPath string // path to CSS file (defaults to "/static/css/app.css")
ThemeJSPath string // path to theme JS bundle (defaults to "/static/js/theme.js")
AppJSPath string // path to ui8kit app JS bundle (defaults to "/static/js/ui8kit.js")
ThemeJSIntegrity string // optional integrity attribute for theme script
AppJSIntegrity string // optional integrity attribute for app script
JSPath string // deprecated alias for AppJSPath
HeadExtra templ.Component // optional extra <head> content
HeaderExtra templ.Component // optional extra header actions before theme toggle
HeaderTrailing templ.Component // optional trailing header actions after theme toggle
ThemeToggle ThemeToggleProps // optional copy for the theme toggle button
ThemeToggleComponent templ.Component // optional custom theme toggle component
// MarketingShell enables full-width marketing layout: no desktop sidebar, header grid, mobile header-nav hidden (nav stays in the sheet).
MarketingShell bool
}
ShellProps configures the full page shell (sidebar + header + main).
type SidebarProps ¶
SidebarProps configures the sidebar navigation.
type ThemeToggleProps ¶ added in v0.2.0
ThemeToggleProps configures copy for the theme toggle button.
Click to show internal directories.
Click to hide internal directories.