Skip to main content

Installation

Usage

Component API

Sheet

Root sheet component. Built on Radix UI Dialog.
Props:
  • open - Controlled open state
  • onOpenChange - Callback when open state changes
  • defaultOpen - Default open state
  • modal - Whether to render as modal (default: true)

SheetTrigger

Button that opens the sheet.

SheetClose

Button that closes the sheet.

SheetContent

Sheet content panel with overlay.
Props:
  • side - Edge where sheet appears ("top" | "right" | "bottom" | "left")
  • showCloseButton - Show/hide close button (default: true)

SheetHeader

Header section for title and description.

SheetFooter

Footer section for actions.

SheetTitle

Sheet title heading.

SheetDescription

Sheet description text.

Examples

Basic Sheet

Different Sides

Sheet can slide from any edge:

    No Close Button

    Hide the default close button:

    Controlled Sheet

    Mobile navigation drawer:

    Accessibility

    • Focus is trapped within the sheet
    • Escape key closes the sheet
    • Background is inert when sheet is open
    • Proper ARIA attributes for dialogs
    • Focus returns to trigger on close

    API Reference

    See the Radix UI Dialog documentation for complete API reference.