Actions
Split action
Offer a default action alongside a menu of related options.
Anatomy
- Default action
- Menu trigger
- Alternative action
Live example
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Menu item text |
--cc-surface-muted | — | Menu item background on hover | |
--cc-surface-elevated | — | Open menu background | |
--cc-border | — | Open menu border | |
--cc-primary | — | Primary button background | |
--cc-primary-hover | — | Primary button background on hover | |
--cc-primary-foreground | — | Primary button label and icon | |
--cc-primary-soft-border | — | Divider between the default action and menu trigger | |
--cc-focus-ring | — | Keyboard focus ring |