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

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

PropTypeDefaultDescription
side"right" | "left" | "top" | "bottom""right"On SheetContent: Edge from which the panel or anchored content opens. Defaults to "right".
sizestring"420px"On SheetContent: Legacy width setting; omitted by default. Deprecated: Use width instead.
showClosebooleantrueOn SheetContent: Shows the panel close button. Defaults to true.
open / defaultOpen / onOpenChangeboolean—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 / refCSSProperties / 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.
classNamesSheetClassNames—On SheetContent: Classes for the named visual parts; no part overrides by default.
widthstring—On SheetContent: CSS width of the panel; defaults to 420px for side sheets and 640px for top or bottom.
SheetContent.childrenReactNode—On SheetContent: Content rendered inside the component. Defaults to no children.

Built from

Used in

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.

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.