Sheet
NEWA draggable sheet / drawer that slides in from any side and can be dragged away to dismiss — swipe left/right sheets anywhere on touch, top/bottom sheets via the grab handle. Springs back if you let go early.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/sheet
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | undefined | Controlled open state (on Sheet) |
| defaultOpen | boolean | false | Initial open state (uncontrolled) |
| onOpenChange | (open: boolean) => void | undefined | Open state change callback |
| side | 'right' | 'left' | 'top' | 'bottom' | 'right' | Side the sheet slides in from (on SheetContent) |
| showClose | boolean | true | Show the built-in close button |
| className | string | undefined | Additional class for the panel |