Docs draft
Tooltip
Component storyFigma component set โReact component โDSDS entity โ
When to use it
visible-text visible text.popover Planned.Variants
placement ยท top / bottom โ Arrow booleans in Figma (Top Arrow / Bottom Arrow); a placement prop in code.
align ยท start / center / end โ Where the arrow sits along the edge. The old Alignment axis.
line ยท single / multi-line โ Figma-only axis: multi-line caps the box at 240 and wraps. Code wraps automatically at the same cap.
Guidelines
API
| Prop | Type | Description |
|---|---|---|
content | ReactNode | The helper text. |
placement | enum | Which side of the trigger the tip renders on. |
align | enum | Alignment of the tip along the trigger edge. |
children | ReactNode | The trigger; receives aria-describedby. |
Design specifications
| surface | color.bg.inverse |
| text | color.text.on-inverse |
| typography | type.body-sm |
| radius | radius.md |
| padding | space.12 x space.8 โ ratified; the old set used 12 on single-line and 8 on multi-line |
| max-width | 240px |
| arrow | 14 x 7 triangle in the surface color |
Accessibility
Tab โ Focusing the trigger reveals the tooltip; leaving dismisses it.
Escape โ Should dismiss while focused โ arrives with the JS layer before stable.
color.text.on-inverse on color.bg.inverse โ Contracted at โฅ 4.5:1 by the build gate.
role=tooltip linked via aria-describedby. The old set was dark-only #414141 on black at 1.5:1 surface separation; the inverse pair fixes both themes.