Skip to main content
  1. Docs
  2. Components
  3. Overlays

Drawer

A full-height panel from the edge: a task beside the page, with the page still in view.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="dialog">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Editing one row of a list without leaving it.
  • A longer form or detail that needs height.
  • Filters and settings beside what they change.
Not for
  • A decision that stops the pageDialog
  • A few fields anchored to a controlPopover
  • The console's own navigationSidebar

02

Anatomy

  1. 1drawer-title<h2>Names the drawer.
  2. 2drawer-description<p>A line under it; it describes the drawer.
  3. 3drawer-body<div>Scrolls; its text can be selected without starting a swipe.
  4. 4drawer-footer<div>The actions, under a rule, end-aligned.
  5. 5drawer-close<div>Close, when it's dismissible.

03

Do and don't

A task, not a question
DoEditing beside the list: a drawer.
Don'tA one-line question in a full-height panel.
Decisions in a dialog
DoRevoking stops the page: a dialog asks.
Don'tA destructive question at the edge of the page.

04

Content

  • The title names what's open: a person, an app.
  • The description places it: "Engineering · joined 2 March 2026".
  • Footer actions as in a dialog: Cancel, then the action in its own words.
Next — DrawerAPI