Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶
func Content(props ...ContentProps) templ.Component
Content renders the main content area of the drawer.
func Drawer ¶
Drawer renders a DaisyUI drawer controlled by Datastar signals. On large screens the sidebar is always visible (lg:drawer-open). On small screens it toggles via signals.
func ToggleButton ¶
ToggleButton renders a hamburger button that toggles the drawer. Only visible on small screens (hidden on lg: when drawer is always open).
Types ¶
type ContentProps ¶
type ContentProps struct {
Class string
Attributes templ.Attributes
}
ContentProps configures the main content area.
type DrawerSignals ¶
type DrawerSignals struct {
Open bool `json:"open"`
}
DrawerSignals holds the reactive state for a drawer.
Click to show internal directories.
Click to hide internal directories.