Tooltip
Small pop-up that appears on hover. Powered by Popover with Floating UI.
Installation
Install the component
templui add tooltipAdd the JavaScript to your layout
@popover.Script()Call this template in your base layout file (e.g., in the <head> section).
Examples
Positions
API Reference
Tooltip
Root wrapper component for tooltip functionality.
| Name | Type | Default |
|---|---|---|
Unique identifier for the tooltip wrapper. | | - |
Additional CSS classes to apply to the tooltip wrapper. | | - |
Additional HTML attributes to apply to the tooltip wrapper. | | - |
Trigger
Element that triggers the tooltip on hover.
| Name | Type | Default |
|---|---|---|
Unique identifier for the trigger element. | | - |
Additional CSS classes to apply to the trigger. | | - |
Additional HTML attributes to apply to the trigger element. | | - |
ID of the tooltip content this trigger controls. | | - |
Content
Container for the tooltip content with positioning options.
| Name | Type | Default |
|---|---|---|
Unique identifier for the content element. | | - |
Additional CSS classes to apply to the content. Default styling includes dark background. | | - |
Additional HTML attributes to apply to the content element. | | - |
Whether to show an arrow pointing to the trigger element. | | |
Position of the tooltip relative to trigger. Options: 'top', 'right', 'bottom', 'left'. | | |
Delay in milliseconds before showing the tooltip on hover. | | |
Delay in milliseconds before hiding the tooltip on hover out. | | |