- Docs
- Components
- Sheet
Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Preview
Code
Installation
CLI
Manual
Anatomy
Single import
Multiple imports
Examples
Side
Use the side prop on <Sheet.Modal> to indicate the edge of the screen where the component will appear. The values can be top, right, bottom, or left.
Preview
Code
API Reference
Sheet.Root
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
isOpen | boolean | |
defaultOpen | boolean | |
onOpenChange | function |
Sheet.Overlay
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
isBlurred | boolean | false |
isDismissable | boolean | true |
isKeyboardDismissDisabled | boolean | |
className | string |
Sheet.Modal
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
side | enum | "right" |
className | string |
Sheet.Content
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
role | enum | "dialog" |
className | string |
Sheet.Header
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |
Sheet.Title
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |
Sheet.Description
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |
Sheet.Footer
| Prop | Type | Default |
|---|---|---|
children | ReactNode | |
className | string |
Sheet.Close
| Prop | Type | Default |
|---|---|---|
className | string |