Documentation
¶
Index ¶
- func Accent(p Props, children ...htmx.Node) htmx.Node
- func Error(p Props, children ...htmx.Node) htmx.Node
- func Info(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 Tip(text string) htmx.Node
- func Tooltip(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 Primary ¶ added in v0.5.3
Primary creates a primary tooltip component with the specified properties and children.
func Secondary ¶ added in v0.5.3
Secondary creates a secondary tooltip component with the specified properties and children.
func Success ¶ added in v0.5.3
Success creates a success tooltip with the specified properties and children.
Types ¶
type Props ¶ added in v0.5.3
type Props struct {
// Open indicates whether the tooltip is open or not.
Open bool
// Tip is the text to be displayed in the tooltip.
Tip string
// ClassNames contains the class names for the tooltip component.
htmx.ClassNames
}
Props represents the properties for a tooltip component.
Click to show internal directories.
Click to hide internal directories.