Documentation
¶
Index ¶
- func Accent(props ButtonProps, children ...htmx.Node) htmx.Node
- func Button(props ButtonProps, children ...htmx.Node) htmx.Node
- func Circle(props ButtonProps, children ...htmx.Node) htmx.Node
- func CircleMedium(props ButtonProps, children ...htmx.Node) htmx.Node
- func CircleSmall(props ButtonProps, children ...htmx.Node) htmx.Node
- func Error(props ButtonProps, children ...htmx.Node) htmx.Node
- func Ghost(props ButtonProps, children ...htmx.Node) htmx.Node
- func Glass(props ButtonProps, children ...htmx.Node) htmx.Node
- func Info(props ButtonProps, children ...htmx.Node) htmx.Node
- func Link(props ButtonProps, children ...htmx.Node) htmx.Node
- func Neutral(props ButtonProps, children ...htmx.Node) htmx.Node
- func Outline(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineAccent(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineError(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineInfo(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlinePrimary(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineSecondary(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineSuccess(props ButtonProps, children ...htmx.Node) htmx.Node
- func OutlineWarning(props ButtonProps, children ...htmx.Node) htmx.Node
- func Primary(props ButtonProps, children ...htmx.Node) htmx.Node
- func Secondary(props ButtonProps, children ...htmx.Node) htmx.Node
- func Success(props ButtonProps, children ...htmx.Node) htmx.Node
- func Warning(props ButtonProps, children ...htmx.Node) htmx.Node
- type ButtonProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accent ¶
func Accent(props ButtonProps, children ...htmx.Node) htmx.Node
Accent generates an accent button element based on the provided properties.
func Button ¶
func Button(props ButtonProps, children ...htmx.Node) htmx.Node
Button generates a button element based on the provided properties.
func Circle ¶ added in v1.2.8
func Circle(props ButtonProps, children ...htmx.Node) htmx.Node
Circle generates a circle button element based on the provided properties.
func CircleMedium ¶ added in v1.2.8
func CircleMedium(props ButtonProps, children ...htmx.Node) htmx.Node
CircleMedium generates a medium circle button element based on the provided properties.
func CircleSmall ¶ added in v1.2.8
func CircleSmall(props ButtonProps, children ...htmx.Node) htmx.Node
CircleSmall generates a small circle button element based on the provided properties.
func Error ¶
func Error(props ButtonProps, children ...htmx.Node) htmx.Node
Error generates an error button element based on the provided properties.
func Ghost ¶
func Ghost(props ButtonProps, children ...htmx.Node) htmx.Node
Ghost generates a ghost button element based on the provided properties.
func Glass ¶
func Glass(props ButtonProps, children ...htmx.Node) htmx.Node
Glass generates a glass button element based on the provided properties.
func Info ¶
func Info(props ButtonProps, children ...htmx.Node) htmx.Node
Info generates an info button element based on the provided properties.
func Link ¶
func Link(props ButtonProps, children ...htmx.Node) htmx.Node
Link generates a link button element based on the provided properties.
func Neutral ¶
func Neutral(props ButtonProps, children ...htmx.Node) htmx.Node
Neutral generates a neutral button element based on the provided properties.
func Outline ¶
func Outline(props ButtonProps, children ...htmx.Node) htmx.Node
Outline generates an outline button element based on the provided properties.
func OutlineAccent ¶
func OutlineAccent(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineAccent generates an outline accent button element based on the provided properties.
func OutlineError ¶
func OutlineError(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineError generates an outline error button element based on the provided properties.
func OutlineInfo ¶
func OutlineInfo(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineInfo generates an outline info button element based on the provided properties.
func OutlinePrimary ¶
func OutlinePrimary(props ButtonProps, children ...htmx.Node) htmx.Node
OutlinePrimary generates an outline primary button element based on the provided properties.
func OutlineSecondary ¶
func OutlineSecondary(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineSecondary generates an outline secondary button element based on the provided properties.
func OutlineSuccess ¶
func OutlineSuccess(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineSuccess generates an outline success button element based on the provided properties.
func OutlineWarning ¶
func OutlineWarning(props ButtonProps, children ...htmx.Node) htmx.Node
OutlineWarning generates an outline warning button element based on the provided properties.
func Primary ¶
func Primary(props ButtonProps, children ...htmx.Node) htmx.Node
Primary generates a primary button element based on the provided properties.
func Secondary ¶
func Secondary(props ButtonProps, children ...htmx.Node) htmx.Node
Secondary generates a secondary button element based on the provided properties.
Types ¶
type ButtonProps ¶
type ButtonProps struct { ClassNames htmx.ClassNames Type string // The type of the button element. Disabled bool // Whether the button element is disabled. }
ButtonProps represents the properties for a button element.