Documentation
¶
Index ¶
- func Accent(p BadgeProps, children ...htmx.Node) htmx.Node
- func Badge(p BadgeProps, children ...htmx.Node) htmx.Node
- func Ghost(p BadgeProps, children ...htmx.Node) htmx.Node
- func Neutral(p BadgeProps, children ...htmx.Node) htmx.Node
- func Primary(p BadgeProps, children ...htmx.Node) htmx.Node
- func Secondary(p BadgeProps, children ...htmx.Node) htmx.Node
- type BadgeProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accent ¶
func Accent(p BadgeProps, children ...htmx.Node) htmx.Node
Accent generates an accent badge element based on the provided properties.
func Badge ¶
func Badge(p BadgeProps, children ...htmx.Node) htmx.Node
Badge generates a badge element based on the provided properties.
func Ghost ¶
func Ghost(p BadgeProps, children ...htmx.Node) htmx.Node
Ghost generates a ghost badge element based on the provided properties.
func Neutral ¶
func Neutral(p BadgeProps, children ...htmx.Node) htmx.Node
Neutral generates a neutral badge element based on the provided properties.
Types ¶
type BadgeProps ¶
type BadgeProps struct {
ClassNames htmx.ClassNames // The class names for the badge element.
}
BadgeProps represents the properties for a badge element.
Click to show internal directories.
Click to hide internal directories.