Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Made by imskyleenInstallation
Usage
API Reference
Sheet
SheetTrigger
SheetContent
Prop | Type | Default |
---|---|---|
showCloseButton? | boolean | true |
side? | 'top' | 'bottom' | 'left' | 'right' | right |
transition? | Transition | { type: 'spring', stiffness: 150, damping: 22 } |
...props? | HTMLMotionProps<"div"> | - |
The asChild
and forceMount
properties are not supported in the
SheetContent
component, as it is used for animation.
SheetClose
SheetHeader
Animate UI API Reference - SheetHeader PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
SheetTitle
SheetDescription
SheetFooter
Animate UI API Reference - SheetFooter PrimitiveProp | Type | Default |
---|---|---|
...props? | React.ComponentProps<'div'> | - |
Credits
- Radix UI Dialog
- Credit to shadcn/ui for style inspiration.