Animate UI

Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Made by imskyleen
Edit on GitHub

Installation

Usage

<Sheet>
  <SheetTrigger>Open Sheet</SheetTrigger>
  <SheetPortal>
    <SheetOverlay />
    <SheetContent>
      <SheetHeader>
        <SheetTitle>Sheet Title</SheetTitle>
        <SheetDescription>Sheet Description</SheetDescription>
      </SheetHeader>
      <p>Sheet Content</p>
      <SheetFooter>
        <button>Accept</button>
      </SheetFooter>
      <SheetClose>Close</SheetClose>
    </SheetContent>
  </SheetPortal>
</Sheet>

API Reference

Sheet

Radix UI API Reference - Dialog.Root

SheetTrigger

Radix UI API Reference - Dialog.Trigger

SheetPortal

Radix UI API Reference - Dialog.Portal

The forceMount property is not supported in the SheetPortal component, as it is used for animation.

SheetOverlay

Radix UI API Reference - Dialog.Overlay
PropTypeDefault
transition?
Transition
{ duration: 0.2, ease: 'easeInOut' }
...props?
HTMLMotionProps<"div">
-

The asChild and forceMount properties are not supported in the SheetOverlay component, as it is used for animation.

SheetContent

Radix UI API Reference - Dialog.Content
PropTypeDefault
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

Radix UI API Reference - Dialog.Close

SheetHeader

PropTypeDefault
...props?
React.ComponentProps<'div'>
-

SheetTitle

Radix UI API Reference - Dialog.Title

SheetDescription

Radix UI API Reference - Dialog.Description

SheetFooter

PropTypeDefault
...props?
React.ComponentProps<'div'>
-

Credits

Built by Skyleen. The source code is available on GitHub.