Sheet

A slide-out panel that appears from the edge of the screen, commonly used for mobile.

Usage

Directions

Forms and scrolling

Bottom sheets automatically keep focused fields visible when the software keyboard opens. Put long content and form fields in SheetBody, with SheetHeader and SheetFooter outside it so they stay in place.

Props

PropTypeDefaultDescription
openboolean-Controlled open state of the sheet
onOpenChange(open: boolean) => void-Callback when the open state changes
defaultOpenboolean-Default open state for uncontrolled usage
direction'left' | 'top' | 'right' | 'bottom''bottom'Direction from which the sheet slides in
renderReactElement-Renders the trigger or close button as the given element (for SheetTrigger and SheetClose)