Tooltip

A small pop-up box that appears when a user hovers over an element

TailwindCSS
Alpine.js

Default

Usage

1. Add the script to your page/layout:

// Option A: All components (recommended)
@utils.ComponentScripts()

// Option B: Just Tooltip
@components.TooltipScript()

2. Use the component:

@components.Tooltip(components.TooltipProps{...})

Examples

With delay (3s open, 1s close)

With delay

Variants

Default tooltip
Secondary tooltip
Destructive tooltip

Sides

Top tooltip
Right tooltip
Bottom tooltip
Left tooltip

With Arrow

Top tooltip
Right tooltip
Bottom tooltip
Left tooltip