Documentation
¶
Overview ¶
Package badges provides components for rendering user badges.
Index ¶
- func Accent(p Props, children ...htmx.Node) htmx.Node
- func Badge(p Props, children ...htmx.Node) htmx.Node
- func Error(p Props, children ...htmx.Node) htmx.Node
- func Ghost(p Props, children ...htmx.Node) htmx.Node
- func Info(p Props, children ...htmx.Node) htmx.Node
- func Neutral(p Props, children ...htmx.Node) htmx.Node
- func Primary(p Props, children ...htmx.Node) htmx.Node
- func Secondary(p Props, children ...htmx.Node) htmx.Node
- func Success(p Props, children ...htmx.Node) htmx.Node
- func Warning(p Props, children ...htmx.Node) htmx.Node
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶ added in v0.5.4
Error generates an error badge element based on the provided properties.
Types ¶
type Props ¶ added in v0.5.4
type Props struct {
htmx.ClassNames // The class names for the badge element.
}
Props represents the properties for a badge element.
Click to show internal directories.
Click to hide internal directories.