Tooltip
Markdown for agentsHover/focus tooltip with aria-describedby association and Escape dismissal.
npx slipstream-ui@latest add tooltipUsage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| content | string | — | The tooltip text. |
| side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Placement relative to the trigger. |
| delay | number | 300 | Delay before showing on hover, in ms. |
Accessibility
- aria-describedby is injected into the trigger so the hint is announced with focus.
- Escape dismisses the tooltip without moving focus.