Sheet
A React component in Beamline's Overlays category, in the free sample.
A panel that slides in from an edge with the page still visible behind it: header and footer stay put while the body scrolls.
Use it for
- Record details, filters or navigation alongside the list they belong to.
Not for
- Short confirmations (dialog).
- Phone panels dragged between heights (bottom-sheet).
Anatomy
- Sheet
- SheetTrigger
- SheetContent (m-overlay panel, scrim, close = ghost icon Button sm at the top inline-end)
- SheetHeader (title role subheading, description; a line seam under it)
- SheetTitle
- SheetDescription
- SheetBody (scrolls)
- SheetFooter (line-soft seam above, actions at the end, wraps)
- SheetClose
Variants
- side: right, left, top, bottom
- size: left and right: any CSS width, default 420px, top and bottom: the widest it gets, default 640px, centred on wider screens
States
- closed
- open (its content answers to the panel's own width: a size container)
- narrow (the footer's buttons share the row in equal parts)
- swiping (touch, side panels: follows the finger toward its edge)
- closing (slides back to its edge)
Keyboard
- Escape closes
- Tab is trapped
- focus returns to the trigger
Motion
Slides in from its edge over --pui-duration-considered on --pui-ease-drawer and goes back out to that edge over --pui-motion-out (a layer closes back into where it came from); the edge is logical, so an end sheet comes from the left in a right-to-left page. Reduced motion: it fades both ways (the fade tokens). On a touch screen a side panel follows a finger swiping it toward its edge, closes past a third of its width or on a flick (and slides on out from where it was), and settles back over the departure short of that; vertical scrolling stays native.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
side | "right" | "left" | "top" | "bottom" | "right" | On SheetContent: Edge from which the panel or anchored content opens. Defaults to "right". |
size | string | "420px" | On SheetContent: Legacy width setting; omitted by default. Deprecated: Use width instead. |
showClose | boolean | true | On SheetContent: Shows the panel close button. Defaults to true. |
open / defaultOpen / onOpenChange | boolean | — | open: Controlled open state; omit to use defaultOpen. defaultOpen: Initial open state when uncontrolled; defaults to false. onOpenChange: Reports an open-state change; no callback by default. |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
classNames | SheetClassNames | — | On SheetContent: Classes for the named visual parts; no part overrides by default. |
width | string | — | On SheetContent: CSS width of the panel; defaults to 420px for side sheets and 640px for top or bottom. |
SheetContent.children | ReactNode | — | On SheetContent: Content rendered inside the component. Defaults to no children. |
Built from
Used in
- Account ledger
- Admin users
- Agent builder
- Agent runs monitor
- AI agent workspace
- Analytics dashboard
- API keys & webhooks
- Appointment book
- Budget month
- Care plan
- Change orders
- Collection batch edit
- Contact profile
- Conversation history
- Course dashboard
- Course home
- Crew booking
- CRM pipeline
- File manager
- Helpdesk inbox
- Hours ledger
- Inspection review
- Integrations
- Inventory finder
- Invoices
- Lease renewals
- Model playground
- Order board
- Order history and fills
- Order ledger
- Orders admin
- Patient overview
- Payroll cycles
- Print scheduler
- Product analytics
- Production plan
- Project board
- Projects
- Protocol builder
- Report builder
- Return queue
- Route plan
- Sales dashboard
- Social media scheduler
- Status dashboard
- Submittal register
- AI support console
- Team calendar
- Team chat
- Timesheet review
- Trading terminal
- Training progress
- Transaction review
- Translation editor
- Waitlist desk
- Workflow builder
- Workout logger
- Workout planner
Dependencies
@radix-ui/react-dialog, lucide-react
Import
import { SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter } from "@beamline/sheet";
Get it
Sheet is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Sheet is included in the free MIT sample. Get Beamline · Connect your agent
More in Overlays
- Command menu: Search-first list of every action: ranked matching, groups, keycap shortcuts and nested pages; inline as CommandPalette or in a ⌘K dialog as CommandMenu.
- Toast: Short results of an action stacked at an edge: point at the stack to fan it out and pause the timers; undo or retry in place; Alt+T, Escape and a swipe…
- Share dialog: Share a document, board or project: invite people by name or email with the access they get, change or remove anyone's access in place, and set who the…
- Context menu: Actions for an object on right-click, long-press, Shift+F10 or the menu key, opened at the pointer, with the same rows as the dropdown menu.
- Hover card: A preview of a person, link or record on hover or keyboard focus, without leaving the page; HoverCardProfile is the standard person preview.
- Product tour: A short guided tour over the real interface: a spotlight that glides from one element to the next while the rest of the screen dims, and a card beside…
- Bottom sheet: A phone panel that rests at a peek and follows the finger to full height; a flick down closes it, and the handle works from the keyboard.
- Dropdown menu: A list of actions behind a trigger, with shortcuts, check items, headings and submenus; one highlight glides under the pointer and jumps with the keyboard.
- Dialog: A focused task over the page (create, invite, rename) with a title, body and footer; focus moves in, is trapped and returns on close.
- Alert Dialog: A blocking confirmation that must be answered: the scrim does not dismiss it, focus starts on the safe choice, and an async action keeps it open until…
- Popover: A small surface anchored to a trigger for a short form, a filter or an explanation; focus moves in and returns on close.
- Tooltip: Short supporting text for a control: opens after a moment on hover and at once on keyboard focus; inside a toolbar group the next one opens instantly.