tooltips

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent added in v0.5.3

func Accent(p Props, children ...htmx.Node) htmx.Node

Accent is a struct that contains the props of an accent tooltip.

func Error added in v0.5.3

func Error(p Props, children ...htmx.Node) htmx.Node

Error creates a tooltip component with error styling.

func Info added in v0.5.3

func Info(p Props, children ...htmx.Node) htmx.Node

Info is a struct that contains the props of an info tooltip.

func Primary added in v0.5.3

func Primary(p Props, children ...htmx.Node) htmx.Node

Primary creates a primary tooltip component with the specified properties and children.

func Secondary added in v0.5.3

func Secondary(p Props, children ...htmx.Node) htmx.Node

Secondary creates a secondary tooltip component with the specified properties and children.

func Success added in v0.5.3

func Success(p Props, children ...htmx.Node) htmx.Node

Success creates a success tooltip with the specified properties and children.

func Tip added in v0.5.2

func Tip(text string) htmx.Node

Tip represents a tooltip with a message.

func Tooltip

func Tooltip(p Props, children ...htmx.Node) htmx.Node

Tooltip creates a tooltip component with the specified properties and children.

func Warning added in v0.5.3

func Warning(p Props, children ...htmx.Node) htmx.Node

Warning is a struct that contains the props of a warning tooltip.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL