Skip to content

Drawer

Open tools in a modal panel and swipe to dismiss it.

alpina-ui/interactive/drawer

Interactive preview

Draft name

This name appears in the review queue.

Draft 01

Usage notes

The bottom drawer locks background scrolling while open, with a neutral scrim and a swipe handle separate from the scrollable content.

When to use

Present a focused task from the edge of the screen, especially on a small device.

When to avoid

Put long reading material or multi-stage navigation on a page with a stable URL.

Accessibility

Give the drawer a title and an explicit close button. Opening, completing and dismissing it must work without a drag gesture.

Keys
KeyAction
Enter / SpaceOpen from the trigger or activate a focused action.
Tab / Shift+TabTraverse focusable controls inside the open modal.
EscapeClose the modal and return focus to its opener.

Content

Use a direct title and keep the primary action visible after the instructions wrap. Put one task in each drawer.

Use
Choose a collection date
Avoid
Options

Copy in four languages

German
Abholdatum wählen17 characters
French
Choisir la date de retrait26 characters
Italian
Scegli data di ritiro21 characters
Romansh
Tscherner la data da retratga29 characters
Add to your project
npx --no-install alpina add drawer