0
Components
API reference

Sheet

Slide-in tonal surface panel anchored to any edge of the viewport, built on Base UI Dialog.

Installation

Usage

Examples

Left Side

Bottom Side

Inset

Scrollable Panel

API Reference

Sheet

Re-exports Dialog.Root from @base-ui/react/dialog.

PropTypeDefaultDescription
openboolean-Controlled open state
defaultOpenbooleanfalseInitial uncontrolled open state
onOpenChange(open: boolean) => void-Callback fired when the open state changes
modalboolean | "trap-focus"trueBlocks outside interaction and traps focus
...propsBase UI Dialog Root props-All other Base UI Dialog Root props are supported

SheetTrigger

Button or custom element (render) that opens the sheet (Dialog.Trigger).

SheetPopup / SheetContent

Main surface container composing SheetPortal, SheetBackdrop, SheetViewport, and Dialog.Popup.

PropTypeDefaultDescription
side"right" | "left" | "top" | "bottom""right"Edge of the viewport from which the sheet enters
variant"default" | "inset""default"Flush edge panel or floating inset surface with rounded edges
showCloseButtonbooleantrueRenders a top-right ghost close button
closePropsDialog.Close.Props-Props forwarded to the built-in close button
portalPropsDialog.Portal.Props-Props forwarded to the internal SheetPortal
classNamestring-Additional CSS classes

SheetHeader

Header container (shrink-0) for SheetTitle and SheetDescription. Supports the render prop.

SheetPanel

Main content container wrapped in a ScrollArea by default.

PropTypeDefaultDescription
scrollablebooleantrueWraps the panel in ScrollArea when true
scrollFadebooleanfalseShows top/bottom fade masks when scrolling
renderReact.ReactElement-Custom element to render instead of <div>
classNamestring-Additional CSS classes

SheetFooter

Bottom action container (shrink-0).

PropTypeDefaultDescription
variant"default" | "bare""default"Tonal footer surface (default) or seamless padding (bare)
renderReact.ReactElement-Custom element to render instead of <div>
classNamestring-Additional CSS classes

SheetTitle / SheetDescription / SheetClose / SheetBackdrop / SheetViewport / SheetPortal

Standard accessible Dialog subcomponents from @base-ui/react/dialog.

© taut ui — built with Base UI and Tailwind CSS v4.