Overview
Edit user profile
Update the user’s information below.
Ahmad Dani
For mobile bottom-sheet patterns, prefer
Drawer. Sheet is optimized for desktop side-panel interactions.Installation
Usage
Variants
Right Slide (Default)
Ideal for detail panels, edit forms, and contextual actions.Left Slide (Navigation)
API Reference
Sheet (Root)
boolean
Controlled open state.
(open: boolean) => void
Callback fired when the open state changes.
boolean
default:"false"
Uncontrolled default open state.
SheetContent
string
default:"right"
Which edge the sheet slides from. Values:
left · right · top · bottomstring
default:"md"
Panel width (for left/right) or height (for top/bottom). Values:
sm · md · lg · xl · fullstring
Additional Tailwind classes for custom overrides.
Accessibility
- Sheet uses
role="dialog"witharia-modal="true" - Focus is trapped inside the sheet while open
- Pressing Escape closes the sheet
SheetTitleis linked viaaria-labelledbySheetDescriptionis linked viaaria-describedby- Focus returns to the trigger when the sheet closes
Do’s & Don’ts
Do
- Use Sheet for edit panels and detail views on desktop
- Use
side="left"for navigation drawers on mobile breakpoints - Include a visible close button in addition to the Escape key
- Keep sheet content focused on a single entity or task
Don't
- Don’t use Sheet for full-screen takeover content — use Modal
- Don’t stack sheets inside other sheets
- Don’t use the default right sheet for navigation — use
side="left" - Don’t use Sheet for content that requires the user’s undivided attention — use Modal