Installation
Usage
Component API
Sheet
Root sheet component. Built on Radix UI Dialog.open- Controlled open stateonOpenChange- Callback when open state changesdefaultOpen- Default open statemodal- Whether to render as modal (default:true)
SheetTrigger
Button that opens the sheet.SheetClose
Button that closes the sheet.SheetContent
Sheet content panel with overlay.side- Edge where sheet appears ("top"|"right"|"bottom"|"left")showCloseButton- Show/hide close button (default:true)
SheetHeader
Header section for title and description.SheetFooter
Footer section for actions.SheetTitle
Sheet title heading.SheetDescription
Sheet description text.Examples
Basic Sheet
Different Sides
Sheet can slide from any edge:No Close Button
Hide the default close button:Controlled Sheet
Navigation Menu
Mobile navigation drawer:Accessibility
- Focus is trapped within the sheet
- Escape key closes the sheet
- Background is inert when sheet is open
- Proper ARIA attributes for dialogs
- Focus returns to trigger on close