Tooltip
Tooltip
Section titled “Tooltip”Category: Overlays
<TooltipTrigger> <IconButton aria-label="Save"> <SaveIcon /> </IconButton> <Tooltip>Save (⌘S)</Tooltip></TooltipTrigger>Install: @helix-ui/core
import { Tooltip, TooltipTrigger } from '@helix-ui/core';status: stable · since: 0.1.0
Tags: hint, label, on-hover, on-focus
Anatomy
Section titled “Anatomy”[ trigger ] ╭───────────╮ │ small text │ ╰─▽─────────╯Layout
Section titled “Layout”- display —
portal - width —
content - height —
content - intrinsicSize —
small floating label - stackable —
false - fullBleed —
false
Visual
Section titled “Visual”A small dark surface with light text and an arrow caret pointing at the trigger. Appears on hover and focus, hides on blur or after a delay.
| Name | Type | Default | Description |
|---|---|---|---|
placement |
'top' | 'bottom' | 'start' | 'end' |
top |
Anchor placement. |
delay |
number |
300 |
Open delay in ms. |
closeDelay |
number |
100 |
Close delay in ms. |
- TooltipTrigger child — the focusable element being described
- Tooltip child — the floating label
Tokens used
Section titled “Tokens used”color.bg.surface.inverse, color.text.inverse, radius.sm, space.2, font.family.sans, font.size.xs, font.weight.medium
Accessibility
Section titled “Accessibility”Notes
- Tooltips appear only on hover/focus and never replace a label. Use
aria-labelfor naming. - Tooltip content must be plain text. For richer content use a Popover with
role="dialog".
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
IconButton |
wraps |
Most common — explain what the icon means. |
Popover |
alternative |
Use Popover for richer interactive content. |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
explain an icon button
Section titled “explain an icon button”“tooltip on a settings icon button”
<TooltipTrigger> <IconButton aria-label="Settings"> <GearIcon /> </IconButton> <Tooltip>Open settings</Tooltip></TooltipTrigger>