Drawer

The Drawer component provides a reusable pattern for drawer in the interface.

Drawer

Note: We've removed the placement of the buttons to prevent issues with documentation. Remove the values from the classList to get the intended layout.

API

Parameter Default Description
Close What to say in the label of the close drawer button.
[] Show on selected screen sizes. xs,sm,md,lg,xl.
[] The data to be passed to the toggle button. If empty no button will be rendered.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--color--primary) color - Primary
var(--color--primary-contrast) color - Primary Contrast
var(--color--secondary) color - Secondary
var(--color--surface) color - Surface
var(--shadow-color) rgba - Shadow Color
var(--shadow-amount) range - Multiplier for elevation shadows. 0 = none, 1 = default.
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--color--alpha) rgba - Used for overlays. Includes opacity — set both color and alpha together.

Similar components