forms

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 Radio

func Radio(p RadioProps, children ...htmx.Node) htmx.Node

Radio generates a radio element based on the provided properties.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL