Atoms
Sheet
A panel that slides out from the edge of the screen.
shadcn/uiBased on shadcn/ui with Formance brand styling.
Installation#
npx shadcn@latest add @formance/sheetInstall the following dependencies:
npm install radix-ui lucide-reactCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet'<Sheet>
<SheetTrigger>Open</SheetTrigger>
<SheetContent>
<SheetHeader>
<SheetTitle>Configuration</SheetTitle>
<SheetDescription>Update your stack settings.</SheetDescription>
</SheetHeader>
</SheetContent>
</Sheet>Examples#
Side Variants#
Use the side prop to render the sheet from different edges of the screen.