Tooltip
Small pop-up that appears on hover. Powered by Popover with Floating UI.
Installation
templui add tooltip
Load the script once in your layout:
<head>
@tooltip.Script()
</head>
Examples
Side
With Keyboard Shortcut
Disabled Button
API Reference
Required parameter
Hover for description
Tooltip
Root wrapper component for tooltip functionality.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Make any element the trigger by spreading tooltip.Trigger() onto its Attributes — the templ equivalent of shadcn's asChild.
Content
Container for the tooltip content with positioning options.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
| | |
| | |
| | |
| | |