Example
Theme
Auto
Auto
Light
Dark
Scale
Medium
Large
Medium
Small
Introduction
Tooltip displays when the cursor hovers over or focuses on an element with [data-tooltip]
attribute.
Compositions
Specify the focus trigger on Input to show the tooltip when the user types.
The text element with [tabindex]
attribute can be focused, so users with touch screens can click the icon to open the tooltip.
The building lacks funding
The building lacks funding <span class="ts-icon is-circle-question-icon" data-tooltip="You must allocate a budget." data-trigger="focus" tabindex="0"><span>
Properties
Description | Default Value | |
---|---|---|
[data-position] |
Position that the popup should appear:
|
bottom |
[data-trigger] |
Events that trigger the tooltip, separated by space (e.g.,
|
hover |
[data-delay] |
Delay time in milliseconds from trigger to display. Set to |
200 |
[data-html] |
Whether the tooltip's content can contain HTML. Set to |
false |