Skip to content

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

LIBRARYCALLS IT
shadcn/uiDrawer (built on Vaul)
MUISwipeableDrawer (anchor bottom)
Chakra UIDrawer (placement bottom)
MantineDrawer (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

Tap Share, then drag-free: use the handle to expand. Esc closes.

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>