Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ButtonGroup ¶
func ButtonGroup(props ButtonGroupProps) templ.Component
func RadioGroup ¶
func RadioGroup(props RadioGroupProps) templ.Component
func Toggle ¶
func Toggle(props ToggleProps) templ.Component
Types ¶
type ButtonGroupProps ¶
type ButtonGroupProps struct {
ID string
Class string
Attributes templ.Attributes
Default string // initially selected theme
Themes []ThemeOption // available themes
}
ButtonGroupProps configures a button-strip theme selector.
type RadioGroupProps ¶
type RadioGroupProps struct {
ID string
Class string
Attributes templ.Attributes
Default string // initially selected theme
Themes []ThemeOption // available themes
}
RadioGroupProps configures radio buttons for selecting from multiple themes.
type ThemeOption ¶
ThemeOption represents a selectable theme.
type ThemeSignals ¶
type ThemeSignals struct {
Theme string `json:"theme"`
}
ThemeSignals holds the reactive theme state.
type ToggleProps ¶
type ToggleProps struct {
ID string
Class string
Attributes templ.Attributes
Theme string // theme to apply when toggled on
Default string // theme when toggled off (defaults to "default")
}
ToggleProps configures a toggle switch between two themes.
Click to show internal directories.
Click to hide internal directories.