Documentation ¶
Index ¶
- func Checkbox(p CheckboxProps, children ...htmx.Node) htmx.Node
- func CheckboxError(p CheckboxProps, children ...htmx.Node) htmx.Node
- func CheckboxInfo(p CheckboxProps, children ...htmx.Node) htmx.Node
- func CheckboxPrimary(p CheckboxProps, children ...htmx.Node) htmx.Node
- func CheckboxSuccess(p CheckboxProps, children ...htmx.Node) htmx.Node
- func CheckboxWarning(p CheckboxProps, children ...htmx.Node) htmx.Node
- func Radio(p RadioProps, children ...htmx.Node) htmx.Node
- type CheckboxProps
- type RadioProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkbox ¶
func Checkbox(p CheckboxProps, children ...htmx.Node) htmx.Node
Checkbox generates a checkbox element based on the provided properties.
func CheckboxError ¶
func CheckboxError(p CheckboxProps, children ...htmx.Node) htmx.Node
CheckboxError is a component that displays an error checkbox.
func CheckboxInfo ¶
func CheckboxInfo(p CheckboxProps, children ...htmx.Node) htmx.Node
CheckboxInfo is a component that displays an info checkbox.
func CheckboxPrimary ¶
func CheckboxPrimary(p CheckboxProps, children ...htmx.Node) htmx.Node
CheckboxPrimary is a component that displays a primary checkbox.
func CheckboxSuccess ¶
func CheckboxSuccess(p CheckboxProps, children ...htmx.Node) htmx.Node
CheckboxSuccess is a component that displays a success checkbox.
func CheckboxWarning ¶
func CheckboxWarning(p CheckboxProps, children ...htmx.Node) htmx.Node
CheckboxWarning is a component that displays a warning checkbox.
Types ¶
type CheckboxProps ¶
type CheckboxProps struct { ClassNames htmx.ClassNames // The class names for the checkbox element. Name string // The name of the checkbox element. Value string // The value of the checkbox element. Checked bool // Whether the checkbox element is checked. }
CheckboxProps represents the properties for a checkbox element.
type RadioProps ¶
type RadioProps struct { ClassNames map[string]bool // The class names for the radio element. Name string // The name of the radio element. Value string // The value of the radio element. Checked bool // Whether the radio element is checked. }
RadioProps represents the properties for a radio element.
Click to show internal directories.
Click to hide internal directories.