Sheet

NEW

A 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

PropTypeDefaultDescription
openbooleanundefinedControlled open state (on Sheet)
defaultOpenbooleanfalseInitial open state (uncontrolled)
onOpenChange(open: boolean) => voidundefinedOpen state change callback
side'right' | 'left' | 'top' | 'bottom''right'Side the sheet slides in from (on SheetContent)
showClosebooleantrueShow the built-in close button
classNamestringundefinedAdditional class for the panel