Overlays
Drawer
Reveal contextual details in a panel at the edge of the current view.
Anatomy
- Backdrop
- Drawer title
- Dismiss control
- Drawer body
Configuration
Opening side
Open details from the right while the gallery stays in view behind the drawer.
Open from the left when the trigger sits on that side of the layout.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Drawer title, actions, and detail values |
--cc-muted-foreground | — | Drawer description, detail labels, and close icon | |
--cc-surface | — | Secondary button background | |
--cc-surface-muted | — | Launcher and close button backgrounds on hover | |
--cc-surface-elevated | — | Drawer and header backgrounds | |
--cc-border | — | Header divider, metadata dividers, and button borders | |
--cc-primary-soft | — | Visibility badge background | |
--cc-primary-soft-foreground | — | Visibility badge label | |
--cc-focus-ring | — | Keyboard focus ring | |
--cc-backdrop | — | Background overlay |