Tooltip
Provide a short supporting description of an element.
Usage guide
#Use for short supplementary descriptions, such as explanations of icons or abbreviated names.
Read-only explanations
Place Tooltip inside the target and put a short description in content. Show it through hover, click, focus, or open.
Clickable or editable content
Use Popover when the content needs interaction.
Examples
#Feature examples
#Choose a feature from 12 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-tooltip>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
boolean | false | Controls whether the tooltip arrow is hidden | |
boolean | false | Show the description independently of automatic triggers. | |
number | 0 | Delay in milliseconds before closing the tooltip after trigger event ends | |
number | null | null | Maximum width of the tooltip in pixels | |
number | 0 | Delay in milliseconds before opening the tooltip after trigger event starts | |
string | '' | Short helper description. | |
'top' | 'topLeft' | 'topRight' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftTop' | 'leftBottom' | 'top' | Placement relative to the element being described. | |
'hover' | 'click' | 'focus' | 'none' | 'hover' | User action that opens the list or popup. | |
| 'none'
| 'fade' | 'fade-scale' | 'zoom' | 'pop'
| 'slide-top' | 'slide-bottom' | 'slide-left' | 'slide-right'
| 'slide-fade-top' | 'slide-fade-bottom' | 'slide-fade-left' | 'slide-fade-right'
| 'reveal-top' | 'reveal-bottom' | 'reveal-left' | 'reveal-right'
| 'flip-x' | 'flip-y' | 'bounce' | 'spin' | 'none' | Enter/exit animation type. `none` (default) toggles instantly. The host itself is the popup, so the animation runs on the host element directly (including the dynamically-attached arrow). `slide-*` and `reveal-*` use explicit directions because the tooltip's `position` attribute drives anchor placement, not animation direction. | |
'x-fast' | 'fast' | 'medium' | 'slow' | 'x-slow' | 'fast' | Animation playback speed token. Maps to `--transition-*` global tokens. |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<void> | Close the open panel. |