Drawer
Open tools in a modal panel and swipe to dismiss it.
alpina-ui/interactive/drawerDraft 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.
| Key | Action |
|---|---|
| Enter / Space | Open from the trigger or activate a focused action. |
| Tab / Shift+Tab | Traverse focusable controls inside the open modal. |
| Escape | Close 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
npx --no-install alpina add drawer