Feedback & Status

Sheet

A sheet is a panel that slides in from the edge of the screen, overlaying the current content.

A sheet is a panel that slides in from the edge of the screen, overlaying the current content.

Size#

The size prop sets the width for left and right sheets, and the height for top and bottom sheets.

Component props#

NameTypeDescription
sidestring"left" | "right" | "top" | "bottom" (default: "right")
sizestring | numberWidth (left/right) or height (top/bottom) of the sheet
isOpenbooleanControlled open state
defaultOpenbooleanInitial open state. Used when the sheet is not wrapped in a DialogTrigger
onOpenChange(open: boolean) => voidCalled when the open state changes
showCloseButtonbooleanRenders a close button in the top-right corner. Defaults to true unless a SheetHeader is present, so only one close button is ever rendered

Parts#

NameTypeDescription
SheetTriggercomponentOpens the sheet
SheetClosecomponentCloses the sheet
SheetTitlecomponentAccessible title, rendered as a Heading
SheetDescriptioncomponentAccessible description, rendered as muted Text

SheetHeader props#

NameTypeDescription
titleReactNodeTitle displayed at the top of the sheet
showClosebooleanShows the close button (default: true)
childrenReactNodeAdditional content below the title