Sheet
A panel that slides in from the edge of the screen.
Examples
No filters on.
Credit funds watchlist
Variants
Reading list, 12 items
right.Usage
Use it when
- The task is a list, a set of filters, a long form or an editor that would scroll inside a dialog.
- The task belongs beside the page, so you want to see what it changes while you work.
- A picker needs to become a bottom sheet on a phone.
Use something else when
- The task is a form that fits in 288px. Use Dialog instead.
- The question is yes or no. Use AlertDialog instead.
- The content is a list of actions on one thing. Use DropdownMenu instead.
- The content is the page's own navigation. Use Nav instead.
Rules
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/sheet.jsonimport { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetBody, SheetFooter, SheetTitle, SheetDescription, SheetClose } from "@/components/cobalt/ui/sheet"