Components
Sheet
Task panel: full-screen on mobile, floating right drawer on desktop. Primary pattern for project details, sharing, and workspace settings.
When to use
- Multi-field flows that should not leave the current page context.
- Add or edit projects, collaborators, references, and settings.
- Use Dialog for one-step confirms; use a full page when the task is the destination.
Example
Panel
Header title + description, scrollable body, footer with primary action. Close via X (and product rules for outside tap).
Best practice
Do
- ✓One job per sheet , don’t mix unrelated settings.
- ✓Primary CTA full-width in the footer on mobile.
- ✓Include SheetTitle for accessibility (suppressFallbackTitle when you provide one).
Don’t
- ×Rely on outside-click dismiss for destructive or half-filled forms without confirming.
- ×Open a Dialog from a Sheet for the main task , keep depth shallow.
components/ui/sheet.tsx · z-110 · selects portaled at z-120
Memorisely