Tooltip
FeedbackA floating label that reveals additional context on hover/focus.
Playground
Hover over me
Helpful info
Controls
Tooltip text.
Placement.
Show delay.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content* | string | — | Tooltip text. |
side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Placement side. |
delay | number | 300 | Show delay in ms. |
Examples
Top
Tooltip on top
vue
<DsTooltip
content="Tooltip on top"
side="top"
/>Bottom
Tooltip below
vue
<DsTooltip
content="Tooltip below"
side="bottom"
/>Left
Left side
vue
<DsTooltip
content="Left side"
side="left"
/>Right
Right side
vue
<DsTooltip
content="Right side"
side="right"
/>Accessibility
- Uses role="tooltip" on the floating element.
- Shown on both hover and focus for keyboard users.
