Documentation
¶
Overview ¶
templ: version: v0.3.977
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Radio ¶
func Radio(props RadioProps) templ.Component
Radio renders an <input type="radio"> styled as a filter button.
func Reset ¶
func Reset(props ...ResetProps) templ.Component
Reset renders an <input type="reset"> that clears the filter selection.
Types ¶
type Props ¶
type Props struct {
ID string
Class string
Attributes templ.Attributes
}
Props for the Filter container (form-based).
type RadioProps ¶
type RadioProps struct {
Class string
Attributes templ.Attributes
Name string
Label string
Checked bool
}
RadioProps for a radio option inside a filter.
type ResetProps ¶
type ResetProps struct {
Class string
Attributes templ.Attributes
}
ResetProps for the reset button inside a filter.
Click to show internal directories.
Click to hide internal directories.