Tooltip
Small pop-up that appears on hover. Powered by Popover with Floating UI.
Installation
templui add tooltipLoad the script once in your layout:
<head>
@tooltip.Script()
</head>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. | | - |
Content
Container for the tooltip content with positioning options.
| Name | Type | Default |
|---|---|---|
Optional HTML id 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. | | |