UI Components
Sheet
A slide-in drawer panel that can appear from any edge of the screen โ right, left, bottom, or top.
Quick Preview
Installation
// Copy Sheet.tsx to your components/ui/ folder// src/components/ui/Sheet.tsx
Usage
import { Sheet, SheetHeader, SheetBody, SheetFooter, SheetTitle, SheetDescription } from '@/components/ui/Sheet'const [open, setOpen] = useState(false)<Button onClick={() => setOpen(true)}>Open</Button><Sheet open={open} onClose={() => setOpen(false)} side="right"><SheetHeader onClose={() => setOpen(false)}><SheetTitle>Title</SheetTitle></SheetHeader><SheetBody>Content goes here</SheetBody></Sheet>
Examples
Four Sides
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
open* | boolean | - | Controls whether the sheet is open |
onClose* | () => void | - | Callback when the sheet should close |
children* | React.ReactNode | - | Sheet content |
side | "right" | "left" | "bottom" | "top" | "right" | Side from which the sheet slides in |
closeOnBackdrop | boolean | true | Close when clicking the backdrop |