--- title: Sheet description: Extends the Dialog component to display content that complements the main content of the screen. base: base component: true links: doc: https://base-ui.com/react/components/sheet api: https://base-ui.com/react/components/sheet#api-reference --- ## Installation Command Manual ```bash npx shadcn@latest add sheet ``` Install the following dependencies: ```bash npm install @base-ui/react ``` 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. ```