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 Datalist(props DatalistProps, children ...htmx.Node) htmx.Node
- func FileInput(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputAccent(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputBordered(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputError(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputGhost(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputInfo(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputPrimary(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputSecondary(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputSuccess(p FileInputProps, children ...htmx.Node) htmx.Node
- func FileInputWarning(p FileInputProps, children ...htmx.Node) htmx.Node
- func Form(p FormProps, children ...htmx.Node) htmx.Node
- func FormControl(p FormControlProps, children ...htmx.Node) htmx.Node
- func FormControlLabel(props FormControlLabelProps, children ...htmx.Node) htmx.Node
- func FormControlLabelAltText(props FormControlLabelAltTextProps, children ...htmx.Node) htmx.Node
- func FormControlLabelText(props FormControlLabelTextProps, children ...htmx.Node) htmx.Node
- func Option(p OptionProps, children ...htmx.Node) htmx.Node
- func Radio(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioAccent(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioError(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioInfo(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioPrimary(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioSecondary(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioSuccess(p RadioProps, children ...htmx.Node) htmx.Node
- func RadioWarning(p RadioProps, children ...htmx.Node) htmx.Node
- func Select(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectAccent(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectBordered(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectDanger(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectError(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectGhost(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectInfo(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectPrimary(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectSecondary(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectSuccess(p SelectProps, children ...htmx.Node) htmx.Node
- func SelectWarning(p SelectProps, children ...htmx.Node) htmx.Node
- func TextInput(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputAccent(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputBordered(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputError(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputGhost(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputPrimary(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputSecondary(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputSuccess(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputWarning(p TextInputProps, children ...htmx.Node) htmx.Node
- func TextInputWithIcon(p TextInputProps, children ...htmx.Node) htmx.Node
- func Textarea(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaBordered(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaError(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaGhost(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaPrimary(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaSecondary(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaSuccess(p TextareaProps, children ...htmx.Node) htmx.Node
- func TextareaWarning(p TextareaProps, children ...htmx.Node) htmx.Node
- func Toggle(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleError(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleInfo(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleLabel(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleSuccess(p ToggleProps, children ...htmx.Node) htmx.Node
- func ToggleWarning(p ToggleProps, children ...htmx.Node) htmx.Node
- type CheckboxProps
- type DatalistProps
- type FileInputProps
- type FormControlLabelAltTextProps
- type FormControlLabelProps
- type FormControlLabelTextProps
- type FormControlProps
- type FormProps
- type OptionProps
- type RadioProps
- type SelectProps
- type TextInputProps
- type TextareaProps
- type ToggleProps
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.
func Datalist ¶ added in v1.3.24
func Datalist(props DatalistProps, children ...htmx.Node) htmx.Node
Datalist is a component that displays a datalist.
func FileInput ¶ added in v1.0.29
func FileInput(p FileInputProps, children ...htmx.Node) htmx.Node
File generates a file input element based on the provided properties.
func FileInputAccent ¶ added in v1.0.29
func FileInputAccent(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputAccent is a component that displays an accent file input.
func FileInputBordered ¶ added in v1.0.29
func FileInputBordered(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputBordered is a component that displays a bordered file input.
func FileInputError ¶ added in v1.0.29
func FileInputError(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputError is a component that displays an error file input.
func FileInputGhost ¶ added in v1.0.29
func FileInputGhost(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputGhost is a component that displays a ghost file input.
func FileInputInfo ¶ added in v1.0.29
func FileInputInfo(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputInfo is a component that displays an info file input.
func FileInputPrimary ¶ added in v1.0.29
func FileInputPrimary(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputPrimary is a component that displays a primary file input.
func FileInputSecondary ¶ added in v1.0.29
func FileInputSecondary(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputSecondary is a component that displays a secondary file input.
func FileInputSuccess ¶ added in v1.0.29
func FileInputSuccess(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputSuccess is a component that displays a success file input.
func FileInputWarning ¶ added in v1.0.29
func FileInputWarning(p FileInputProps, children ...htmx.Node) htmx.Node
FileInputWarning is a component that displays a warning file input.
func FormControl ¶ added in v1.1.5
func FormControl(p FormControlProps, children ...htmx.Node) htmx.Node
FormControl generates a form control element based on the provided properties.
func FormControlLabel ¶ added in v1.1.6
func FormControlLabel(props FormControlLabelProps, children ...htmx.Node) htmx.Node
FormControlLabel generates a form control label element based on the provided properties.
func FormControlLabelAltText ¶ added in v1.1.29
func FormControlLabelAltText(props FormControlLabelAltTextProps, children ...htmx.Node) htmx.Node
FormControlLabelAltText generates a form control label alt text element based on the provided properties.
func FormControlLabelText ¶ added in v1.1.5
func FormControlLabelText(props FormControlLabelTextProps, children ...htmx.Node) htmx.Node
FormControlLabelText generates a form control label text element based on the provided properties.
func Option ¶ added in v1.0.29
func Option(p OptionProps, children ...htmx.Node) htmx.Node
Option ...
func Radio ¶
func Radio(p RadioProps, children ...htmx.Node) htmx.Node
Radio generates a radio element based on the provided properties.
func RadioAccent ¶ added in v1.1.51
func RadioAccent(p RadioProps, children ...htmx.Node) htmx.Node
RadioAccent component represents an accent radio element.
func RadioError ¶ added in v1.1.51
func RadioError(p RadioProps, children ...htmx.Node) htmx.Node
RadioError component represents an error radio element.
func RadioInfo ¶ added in v1.1.51
func RadioInfo(p RadioProps, children ...htmx.Node) htmx.Node
RadioInfo component represents a info radio element.
func RadioPrimary ¶ added in v1.1.51
func RadioPrimary(p RadioProps, children ...htmx.Node) htmx.Node
RadioPrimary component represents a primary radio element.
func RadioSecondary ¶ added in v1.1.51
func RadioSecondary(p RadioProps, children ...htmx.Node) htmx.Node
RadioSecondary component represents a secondary radio element.
func RadioSuccess ¶ added in v1.1.51
func RadioSuccess(p RadioProps, children ...htmx.Node) htmx.Node
RadioSuccess component represents a successful radio element.
func RadioWarning ¶ added in v1.1.51
func RadioWarning(p RadioProps, children ...htmx.Node) htmx.Node
RadioWarning component represents a warning radio element.
func Select ¶ added in v1.0.29
func Select(p SelectProps, children ...htmx.Node) htmx.Node
Select ...
func SelectAccent ¶ added in v1.2.8
func SelectAccent(p SelectProps, children ...htmx.Node) htmx.Node
SelectAccent ...
func SelectBordered ¶ added in v1.2.8
func SelectBordered(p SelectProps, children ...htmx.Node) htmx.Node
SelectBordered ...
func SelectDanger ¶ added in v1.2.8
func SelectDanger(p SelectProps, children ...htmx.Node) htmx.Node
SelectWarning ...
func SelectError ¶ added in v1.2.8
func SelectError(p SelectProps, children ...htmx.Node) htmx.Node
SelectError ...
func SelectGhost ¶ added in v1.2.8
func SelectGhost(p SelectProps, children ...htmx.Node) htmx.Node
SelectGhost ...
func SelectInfo ¶ added in v1.2.8
func SelectInfo(p SelectProps, children ...htmx.Node) htmx.Node
SelectInfo ...
func SelectPrimary ¶ added in v1.2.8
func SelectPrimary(p SelectProps, children ...htmx.Node) htmx.Node
SelectPrimary ...
func SelectSecondary ¶ added in v1.2.8
func SelectSecondary(p SelectProps, children ...htmx.Node) htmx.Node
SelectSecondary ...
func SelectSuccess ¶ added in v1.2.8
func SelectSuccess(p SelectProps, children ...htmx.Node) htmx.Node
SelectSuccess ...
func SelectWarning ¶ added in v1.2.8
func SelectWarning(p SelectProps, children ...htmx.Node) htmx.Node
SelectWarning ...
func TextInput ¶ added in v1.0.29
func TextInput(p TextInputProps, children ...htmx.Node) htmx.Node
TextInput returns a text input element based on the provided properties.
func TextInputAccent ¶ added in v1.0.29
func TextInputAccent(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputAccent is a component that displays an accent text input.
func TextInputBordered ¶ added in v1.0.29
func TextInputBordered(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputBordered is a component that displays a bordered text input.
func TextInputError ¶ added in v1.0.29
func TextInputError(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputError is a component that displays an error text input.
func TextInputGhost ¶ added in v1.0.29
func TextInputGhost(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputGhost is a component that displays a ghost text input.
func TextInputPrimary ¶ added in v1.0.29
func TextInputPrimary(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputPrimary is a component that displays a primary text input.
func TextInputSecondary ¶ added in v1.0.29
func TextInputSecondary(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputSecondary is a component that displays a secondary text input.
func TextInputSuccess ¶ added in v1.0.29
func TextInputSuccess(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputSuccess is a component that displays a success text input.
func TextInputWarning ¶ added in v1.0.29
func TextInputWarning(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputWarning is a component that displays a warning text input.
func TextInputWithIcon ¶ added in v1.0.29
func TextInputWithIcon(p TextInputProps, children ...htmx.Node) htmx.Node
TextInputWithIcon is a component that displays a text input with an icon.
func Textarea ¶ added in v1.0.34
func Textarea(p TextareaProps, children ...htmx.Node) htmx.Node
Textarea is a textarea component
func TextareaBordered ¶ added in v1.0.34
func TextareaBordered(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaBordered is a textarea component with a border
func TextareaError ¶ added in v1.0.34
func TextareaError(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaError is a textarea component with an error border
func TextareaGhost ¶ added in v1.0.34
func TextareaGhost(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaGhost is a textarea component with a ghost border
func TextareaPrimary ¶ added in v1.0.34
func TextareaPrimary(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaPrimary is a textarea component with a primary border
func TextareaSecondary ¶ added in v1.0.34
func TextareaSecondary(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaSecondary is a textarea component with a secondary border
func TextareaSuccess ¶ added in v1.0.34
func TextareaSuccess(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaSuccess is a textarea component with a success border
func TextareaWarning ¶ added in v1.0.34
func TextareaWarning(p TextareaProps, children ...htmx.Node) htmx.Node
TextareaWarning is a textarea component with a warning border
func Toggle ¶ added in v1.0.30
func Toggle(p ToggleProps, children ...htmx.Node) htmx.Node
Toggle returns a toggle element based on the provided properties.
func ToggleError ¶ added in v1.0.30
func ToggleError(p ToggleProps, children ...htmx.Node) htmx.Node
ToggleError is a component that displays an error toggle.
func ToggleInfo ¶ added in v1.0.30
func ToggleInfo(p ToggleProps, children ...htmx.Node) htmx.Node
ToggleInfo is a component that displays an info toggle.
func ToggleLabel ¶ added in v1.0.30
func ToggleLabel(p ToggleProps, children ...htmx.Node) htmx.Node
ToggleLabel is a component that displays a label for a toggle.
func ToggleSuccess ¶ added in v1.0.30
func ToggleSuccess(p ToggleProps, children ...htmx.Node) htmx.Node
ToggleSuccess is a component that displays a success toggle.
func ToggleWarning ¶ added in v1.0.30
func ToggleWarning(p ToggleProps, children ...htmx.Node) htmx.Node
ToggleWarning is a component that displays a warning toggle.
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. Disabled bool // Whether the checkbox element is disabled. }
CheckboxProps represents the properties for a checkbox element.
type DatalistProps ¶ added in v1.3.24
type DatalistProps struct { // ID is the id of the datalist ID string // URL is the url of the datalist URL string // ClassNames is a map of class names to conditionally add to the component ClassNames htmx.ClassNames // Name is the name of the datalist Name string // Placeholder is the placeholder of the datalist Placeholder string // Disabled is whether the datalist is disabled Disabled bool // Indicator is the indicator of the datalist Indicator string // Error is the error of the datalist Error error }
DatalistProps is the type of the props for the Datalist component
type FileInputProps ¶ added in v1.0.29
type FileInputProps struct { ClassNames htmx.ClassNames Disabled bool }
FileInputProps represents the properties for a file input element.
type FormControlLabelAltTextProps ¶ added in v1.1.29
type FormControlLabelAltTextProps struct {
ClassNames htmx.ClassNames // The class names for the form control label alt text element.
}
FormControlLabelAltTextProps represents the properties for a form control label alt text element.
type FormControlLabelProps ¶ added in v1.1.6
type FormControlLabelProps struct {
ClassNames htmx.ClassNames // The class names for the form control label element.
}
FormControlLabelProps represents the properties for a form control label element.
type FormControlLabelTextProps ¶ added in v1.1.5
type FormControlLabelTextProps struct {
ClassNames htmx.ClassNames // The class names for the form control label text element.
}
FormControlLabelTextProps represents the properties for a form control label text element.
type FormControlProps ¶ added in v1.1.5
type FormControlProps struct {
ClassNames htmx.ClassNames // The class names for the form control element.
}
FormControlProps represents the properties for a form control element.
type FormProps ¶ added in v1.3.33
type FormProps struct {
ClassNames htmx.ClassNames // The class names for the form element.
}
FormProps represents the properties for a form element.
type OptionProps ¶ added in v1.0.29
type OptionProps struct { ClassNames htmx.ClassNames Value string Selected bool Disabled bool }
OptionProps ...
type RadioProps ¶
type RadioProps struct { ClassNames htmx.ClassNames // 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. Disabled bool Error error }
RadioProps represents the properties for a radio element.
type SelectProps ¶ added in v1.0.29
type SelectProps struct { // ClassNames is a map of class names. ClassNames htmx.ClassNames // Disabled is disabling the select. Disabled bool }
SelectProps ...
type TextInputProps ¶ added in v1.0.29
type TextInputProps struct { ClassNames htmx.ClassNames // The class names for the text input element. Disabled bool // Whether the text input element is disabled. Type string // The type of the text input element. Error error // The error message of the text input element. Icon htmx.Node // The icon of the text input element. Name string // The name of the text input element. Placeholder string // The placeholder of the text input element. Value string // The value of the text input element. }
TextInputProps represents the properties for a text input element.
type TextareaProps ¶ added in v1.0.34
type TextareaProps struct { ClassNames htmx.ClassNames Placeholder string Disabled bool Name string Value string }
TextareaProps are the properties for the textarea component
type ToggleProps ¶ added in v1.0.30
type ToggleProps struct { ClassNames htmx.ClassNames // The class names for the toggle element. Name string // The name of the toggle element. Value string // The value of the toggle element. Disabled bool // Whether the toggle element is disabled. Checked bool // Whether the toggle element is checked. }
ToggleProps represents the properties for a toggle element.