Drawer
A temporary side surface for focused work.
A focused surface for decisions that need attention.
npx shadcn@latest add @silicon-ui/dialognpx shadcn@latest add @silicon-ui/dialogInstall the dependencies.
npm install @radix-ui/react-dialog lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/dialog/dialog.tsxcomponents/silicon-ui/dialog/dialog.module.csscomponents/silicon-ui/lib/escape.ts sharedcomponents/silicon-ui/lib/return-focus.ts sharedInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
DialogAccepts the props of DialogProps.
DialogContent| Prop | Type | Default |
|---|---|---|
title* | string | — |
children* | ReactNode | — |
description | string | — |
Also accepts the props of ComponentPropsWithoutRef<typeof DialogPrimitive.Content>.
DialogTriggerAccepts the props of ButtonHTMLAttributes.
DialogCloseAccepts the props of ButtonHTMLAttributes.