Overlays
Bottom sheet
Also calledbottom draweraction sheetslide-up panel
A panel that slides up from the bottom edge, common on mobile for actions, filters, or details. Often has a drag handle and can be swiped away.
How people describe it
- “panel that slides up from the bottom of the screen”
- “mobile menu that rises from the bottom”
- “card with a little handle bar at the top that you can drag down”
Good for
- Mobile action menus
- Filters and sort options on phones
- Detail previews such as a map pin card
Don’t mix it up with
Slides in from the side instead of the bottom.
Centered, and not swipe-to-dismiss.
What your library calls it
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Drawer (built on Vaul) |
| MUI | SwipeableDrawer (anchor bottom) |
| Chakra UI | Drawer (placement bottom) |
| Mantine | Drawer (position bottom) |
Accessibility checklist
- Provide a close button as well as the swipe gesture
- Trap focus while it is open
- Use the dialog role and give it a name
Try it
Photo.jpg
Share with
Tap Share, then drag-free: use the handle to expand. Esc closes.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
Prompt
Add a bottom sheet with a drag handle. Swipe down or tap outside to close.
~19 estimated prompt tokensDetailed: ~61 estimated prompt tokens
Rough estimate for prompt text only; actual counts vary by model and context.
<div className="fixed inset-x-0 bottom-0 max-h-[85vh] overflow-y-auto rounded-t-2xl bg-white p-4 pb-[env(safe-area-inset-bottom)] shadow-2xl">
<div className="mx-auto mb-3 h-1.5 w-10 rounded-full bg-gray-300" />
{children}
</div>