Documentation ¶
Index ¶
- func Accent(props LinkProps, children ...htmx.Node) htmx.Node
- func Button(props LinkProps, children ...htmx.Node) htmx.Node
- func Error(props LinkProps, children ...htmx.Node) htmx.Node
- func Info(props LinkProps, children ...htmx.Node) htmx.Node
- func Link(props LinkProps, children ...htmx.Node) htmx.Node
- func Neutral(props LinkProps, children ...htmx.Node) htmx.Node
- func Primary(props LinkProps, children ...htmx.Node) htmx.Node
- func Secondary(props LinkProps, children ...htmx.Node) htmx.Node
- func Underline(props LinkProps, children ...htmx.Node) htmx.Node
- func Warning(props LinkProps, children ...htmx.Node) htmx.Node
- type LinkProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accent ¶ added in v1.0.10
Accent generates an accent link element based on the provided properties.
func Error ¶ added in v1.0.10
Error generates an error link element based on the provided properties.
func Neutral ¶ added in v1.0.10
Neutral generates a neutral link element based on the provided properties.
func Secondary ¶ added in v1.0.10
Secondary generates a secondary link element based on the provided properties.
Types ¶
type LinkProps ¶
type LinkProps struct { Rel string // The relationship between the current document and the linked document. Href string // The URL of the linked document. ClassNames map[string]bool // The class names for the link element. Active bool // Whether the link is active. }
LinkProps represents the properties for a link element.
Click to show internal directories.
Click to hide internal directories.