Drawer
A bottom sheet on Vaul with a 20px top radius, grab handle and pill actions; drag physics are Vaul’s own.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { Button } from '@/components/ui/button';import { DrawerRounded } from '@/components/component-kit/items/drawer-rounded';
export function Example() { return ( <DrawerRounded trigger={<Button variant="outline">Move to folder</Button>} title="Move to folder" description="Pick a destination for 3 files." confirmLabel="Move" > <p className="text-sm">Your content here.</p> </DrawerRounded> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
trigger | ReactElement | — | Element that opens the drawer. |
confirmLabel | ReactNode | Continue | Primary action label. |
onConfirm | () => void | — | Confirm handler. |