tooltips

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

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

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

func Error

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

Error creates a tooltip component with error styling.

func Info

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

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

func Primary

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

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

func Secondary

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

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

func Success

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

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

func Tip

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

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

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

Types

type Props

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