Tooltip
A short line of text beside a control, naming what it does.
import { Tooltip } from "@dede-style/ui/tooltip", then put the control inside it: <Tooltip content="Add to favourites"><IconButton … /></Tooltip>. The tooltip attaches to the control it wraps, so there is nothing else to connect.
| Prop | Description | Default | Control |
|---|---|---|---|
| content | the text, required. One short line. Screen readers do not read it, so the control’s own name must say the same or more | ||
| placement | which side of the control it sits on. start and end follow the reading direction. At a screen edge it flips to the opposite sideabovebelowstartend | above |
|
| align | where it lines up along that side: centred on the control, or level with its start or end edgestartcenterend | center |
|
Tokens
What a theme can move, where the props above are what an instance can move.
| Token | Description | Value |
|---|---|---|
| --tooltip-delay | how long the pointer rests on a control before its tooltip shows. Keyboard focus shows it at once whatever this is set to | --motion-duration-base |
| --tooltip-radius | the corner of every tooltip. 8px by default, the same as cards, fields and rounded buttons | --radius-4 |
A token appears here only when the value is not already reachable. Anything that resolves through a foundation token or a role needs none, because overriding that already moves it — and a second dial wired to the same value would let this one component drift from everything sharing the role. What is left is the values with no other lever at all.
These are public and overridable — there is no private custom property, because anything on :root is reachable by any stylesheet. What replaces privacy is a stability contract: primitives may move, roles are the guarantee, and these are the per-component escape from both.