--- title: Sheet description: Extends the Dialog component to display content that complements the main content of the screen. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/dialog api: https://www.radix-ui.com/docs/primitives/components/dialog#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add sheet ``` Install the following dependencies: ```bash npm install @radix-ui/react-dialog ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ### Usage ```tsx showLineNumbers import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet" ``` ```tsx showLineNumbers Open Are you absolutely sure? This action cannot be undone. This will permanently delete your account and remove your data from our servers. ``` ## Examples ### Side Use the `side` property to `` to indicate the edge of the screen where the component will appear. The values can be `top`, `right`, `bottom` or `left`. ### Size You can adjust the size of the sheet using CSS classes: ```tsx showLineNumbers {3} Open Are you absolutely sure? This action cannot be undone. This will permanently delete your account and remove your data from our servers. ```