Overlays
Tooltip
Add a short hint that appears when a control receives hover or keyboard focus.
Anatomy
- Trigger
- Hint text
- Tooltip surface
Live example
Use a tooltip for a short hint about a control, such as its keyboard shortcut.
Design tokens used
| Category | Token | Value | Where itβs used |
|---|---|---|---|
| Colour | --cc-surface-inverse | β | Tooltip background |
--cc-foreground-inverse | β | Tooltip text | |
--cc-border-inverse | β | Tooltip border |