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
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | - | Controlled open state of the sheet |
onOpenChange | (open: boolean) => void | - | Callback when the open state changes |
defaultOpen | boolean | - | Default open state for uncontrolled usage |
direction | 'left' | 'top' | 'right' | 'bottom' | 'bottom' | Direction from which the sheet slides in |
render | ReactElement | - | Renders the trigger or close button as the given element (for SheetTrigger and SheetClose) |