Overlays
Popover
Reveal supplementary information next to the control that opens it.
Anatomy
- Trigger
- Panel title
- Supplementary content
Live example
Use a popover for brief, optional context, such as explaining a setting while someone fills out a form.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Trigger label and panel title |
--cc-muted-foreground | — | Panel description | |
--cc-surface | — | Secondary button background | |
--cc-surface-muted | — | Secondary button background on hover | |
--cc-surface-elevated | — | Popover panel background | |
--cc-border | — | Trigger and panel borders | |
--cc-focus-ring | — | Keyboard focus ring |