⚡ ComponentForge

Drawer

Overlays

Side panel (left/right/bottom sheet) built on the same modal machinery as Dialog — one focus implementation, two presentations.

import { Drawer } from "@componentforge/react";

Examples

Right-side settings panel

Accessibility

  • Same focus trap, restore and aria-modal semantics as Dialog.
  • Slide animations respect prefers-reduced-motion.

Keyboard interactions

KeyAction
EscapeClose the drawer.
Tab / Shift+TabCycle focus within the panel.

API reference

Selected props — every component also spreads native HTML attributes.

PropTypeDefaultDescription
Content.side"left" | "right" | "bottom""right"Edge the panel docks to.
Content.labelstring""Accessible name when no Title is used.
open / defaultOpen / onOpenChangefalseIdentical controlled/uncontrolled contract as Dialog.