Skip to content
GitHub

Sheet

Content that slides in from the screen edge.

Installation

Usage

Sides

Control which side the sheet slides in from using the side prop.

Examples

Inset Variant

Use the variant="inset" prop to add padding. The sheet appears as a floating card rather than edge-to-edge.

With Scroll

Use <SheetBody /> to make the content area scrollable while keeping header and footer fixed.

No Close Button

Use the showCloseButton prop to hide the close button in the top right corner.

Close behavior

Use closeOnInteractOutside and closeOnEscape props to prevent closing on outside click and escape.

Non-Modal

Use modal={false} to allow interaction with elements outside the sheet. Disables focus trapping and scroll prevention.

Custom spacing

Use [--space:--spacing("value")] on <SheetContent /> to adjust internal padding (default --spacing(6)).

API Reference

Sheet

Root component. Uses Ark UI Dialog. Controls open state and slide direction.

SheetTrigger

Opens the sheet on click. Use asChild for custom triggers.

SheetContent

Holds the sheet panel. Slides in from the configured edge.

SheetHeader

Header area for title and description.

SheetBody

Scrollable body. Uses ScrollArea for overflow.

SheetFooter

Footer area for action buttons.

SheetTitle

Accessible title. Announced to screen readers.

SheetDescription

Accessible description. Announced to screen readers.

SheetClose

Closes the sheet on click.

SheetOverlay

Dimmed overlay behind the sheet.

SheetPositioner

Positioning wrapper for sheet content. Used internally; expose for custom layouts.


For a complete list of props, see the Ark UI documentation.