Skip to content
Storybook

Drawer

Side panel for filters, details and settings that keeps page context. Slides from the inline end.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Filters

Status

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

API reference

Class / attributeTypeDescription
dialog.px-drawerclassPanel.
__head · __body · __footclassSlots.

Figma properties

Drawer2 variants · page “Overlays”Open

Side panel for secondary tasks (filters, details, settings) that keeps page context. Slides in from the inline-end edge: right in LTR, left in RTL. Same focus rules as Modal.

PropertyTypeValues
TitleText“Filters”
Content swapInstance swap—
DirectionVariantLTR RTL

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-modal-dividercolor-border-neutral-subtle#f2f4f7
--px-modal-radiusradius-xl16px
--px-modal-paddingspacing-2xl24px
--px-modal-width-sm400px400px
--px-modal-width-md560px560px
--px-modal-width-lg720px720px
--px-drawer-width400px400px

Accessibility

  • Same focus rules as Modal.