Integrated ResearchPicasso
Components

Bottom sheet

A panel that rises from the bottom edge over a scrim — the phone-sized answer to a Select, a filter or a sort menu.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

A panel that rises from the bottom edge over a scrim — the phone-sized answer to a Select, a filter or a sort menu.

Import

import { BottomSheet, BottomSheetTrigger, BottomSheetClose, BottomSheetContent, BottomSheetHeader, BottomSheetTitle, BottomSheetDescription, BottomSheetCloseButton, BottomSheetBody, BottomSheetItem, BottomSheetFooter } from "@ir/ui";

Watch out

  • The drag is an addition, never the exit. A sheet whose only way out is a gesture is a sheet a keyboard or switch user cannot leave, so the close button is always drawn and the handle stays aria-hidden: it is an affordance for the gesture, not a control.
  • Not for navigation. A phone's main nav is full screen (SidebarMobile); a sheet is for one decision about the page beneath it.

Props

PropTypeRequiredWhat it does
labelstringAccessible name for a sheet with no visible BottomSheetTitle. Mutually exclusive with it.
handlebooleanThe handle. On by default; it is the affordance for the drag, not a control.
dragbooleanDrag the handle or header down to dismiss. On by default.

Do and don't

Below md (768), open the same choices in a BottomSheet; keep the Popover from md up.

Don't — Open an anchored Popover or Select menu from a 32-tall trigger on a phone.

On the Clarion Endpoints page the anchored menus clipped against a 390 viewport and put 32-tall rows under a thumb. The sheet starts where the thumb already is.

Collect ticks in a draft and commit on Apply, with the count — "Apply · 2". Clear sits beside it.

Don't — Apply each tick live while the sheet is still covering the result.

The list being filtered is under the scrim, so a live change is one nobody can see. It also matches Select's apply-not-live rule.

Treat every way out except Apply as Cancel.

Don't — Keep the draft when the sheet is dismissed with the scrim, Escape or the close button.

Same rule as Select — a dismissal that half-commits leaves people unsure what is filtered.

Draw the close button as well. The drag is a shortcut for a thumb; Escape, the scrim and the close button are the exits.

Don't — Ship the drag as the way out, with nothing drawn to close the sheet.

A gesture-only exit cannot be reached by a keyboard or by switch control, and nothing on screen tells anyone the panel can be dragged. The handle hints at it and stays aria-hidden, so the drag is an addition to the three exits rather than a replacement for them.

Cap it (5/6 of the viewport) and scroll the body; leave the page peeking above.

Don't — Let the sheet fill the screen.

A sheet that covers everything reads as a new screen, and people stop expecting the scrim to take them back.

Use BottomSheetItem — 48 tall, the whole row a label around the Checkbox or Radio.

Don't — Reuse the 28–32 menu rows from the desktop Popover.

Desktop menu rows are sized for a pointer. A thumb needs about 44, and a row that only reacts on its checkbox is a row people miss.

Use SidebarMobile — the nav full screen — and keep sheets for one decision about the page beneath.

Don't — Put the app's navigation in a bottom sheet.

Navigation leaves the page; a sheet is about the page. Mixing them makes Apply and 'go somewhere' look the same.

Accessibility

  • Built on Radix Dialog: modal, focus trapped, Escape and a scrim tap close it, focus returns to the trigger.
  • Give it a visible BottomSheetTitle, or label when there is none — never both.
  • The handle is aria-hidden: it hints at the drag, it is not a control. Everything the drag does is also reachable by keyboard.
  • The panel follows the finger under prefers-reduced-motion too — direct manipulation is not animation. On release the settle is instant and a dismissal is a short fade.
  • BottomSheetItem is a <label>, so the whole 48 row toggles the Checkbox or Radio inside it.

Where it is drawn

Figma — structure from code, measurements from code.

Open in Storybook

On this page