Overview
Delete item
Top (default)Appears on the right
Installation
Usage
Variants
Basic
Delete item
Placement
With Keyboard Shortcut
Save
⌘S
API Reference
Tooltip (Root)
Controlled open state.
Callback fired when the open state changes.
Uncontrolled default open state.
Hover delay before the tooltip appears (ms).
TooltipContent
Preferred placement. Values:
top · bottom · left · rightDistance from the trigger in pixels.
Alignment along the placement axis. Values:
start · center · endTooltip size. Values:
sm · mdAdditional Tailwind classes for custom overrides.
Accessibility
- Tooltip content uses
role="tooltip"with a uniqueid - The trigger has
aria-describedbypointing to the tooltipid - Tooltip opens on hover AND keyboard focus — never only on hover
- Pressing Escape dismisses the tooltip
- Do not put interactive elements (links, buttons) inside tooltip content
Do’s & Don’ts
Do
- Use Tooltip to label icon-only buttons
- Keep tooltip text to one short sentence or a keyboard shortcut
- Use
side="bottom"for elements at the top of the viewport - Always make the tooltip trigger keyboard-focusable
Don't
- Don’t put interactive elements (links, buttons) inside tooltips
- Don’t use Tooltip to hide essential information — it must be discoverable
- Don’t use Tooltip for mobile-only touch targets — hover doesn’t work on touch
- Don’t add long paragraphs — use a Popover for rich content