--- title: Sheet description: Extends the Dialog component to display content that complements the main content of the screen. component: true radix: link: https://www.radix-ui.com/docs/primitives/components/dialog api: https://www.radix-ui.com/docs/primitives/components/dialog#api-reference --- ## Installation ```bash npx shadcn-ui add sheet ``` Manual Installation 1. Install the `@radix-ui/react-dialog` component from radix-ui: ```bash npm install @radix-ui/react-dialog ``` 2. Copy and paste the following code into your project. This is the `` primitive. You can place it in a file at `components/ui/sheet.tsx`. ## Usage ```tsx import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet" ``` ```tsx Open Are you sure absolutely sure? This action cannot be undone. This will permanently delete your account and remove your data from our servers. ``` ## Examples ### Position Pass the `position` property to `` to indicate the edge of the screen where the component will appear. The values can be `top`, `right`, `bottom` or `left`. --- ### Size Pass the `size` property to `` if you need to adjust the size of the sheet. The values can be `sm`, `default`, `lg`, `xl`, `full` or `content`.