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)
Controlled open state.
Callback fired when the open state changes.
Uncontrolled default open state.
SheetContent
Which edge the sheet slides from. Values:
left · right · top · bottomPanel width (for left/right) or height (for top/bottom). Values:
sm · md · lg · xl · fullAdditional 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