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
func Trigger ¶
func Trigger(props TriggerProps) templ.Component
Types ¶
type ContentProps ¶
type ContentProps struct {
DropdownID string
Class string
Attributes templ.Attributes
}
ContentProps configures the dropdown content panel.
type DropdownSignals ¶
type DropdownSignals struct {
Open bool `json:"open"`
}
DropdownSignals holds the reactive state for a dropdown.
type Props ¶
type Props struct {
ID string
Class string
Attributes templ.Attributes
Position Position
Align Align
Hover bool
}
Props configures a dropdown.
type TriggerProps ¶
type TriggerProps struct {
DropdownID string
Class string
Attributes templ.Attributes
}
TriggerProps configures the dropdown trigger button.
Click to show internal directories.
Click to hide internal directories.