a
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "dialog-style-default",
|
||||
"type": "registry:block",
|
||||
"title": "dialog-style-default",
|
||||
"registryDependencies": [
|
||||
"https://retroui.dev/r/dialog.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "preview/components/dialog-style-default.tsx",
|
||||
"content": "import { Button } from \"@/components/retroui/Button\";\nimport { Dialog } from \"@/components/retroui/Dialog\";\nimport { Text } from \"@/components/retroui/Text\";\n\nexport default function DialogStyleDefault() {\n return (\n <Dialog>\n <Dialog.Trigger asChild>\n <Button>Open Dialog</Button>\n </Dialog.Trigger>\n <Dialog.Content>\n <Dialog.Header>\n <Text as=\"h5\">Confirm your action?</Text>\n </Dialog.Header>\n <section className=\"flex flex-col gap-4 p-4\">\n <section className=\"text-xl\">\n <p>Are you sure you want to delete this item?</p>\n <p>This action cannout be undone.</p>\n </section>\n <section className=\"flex w-full justify-end\">\n <Dialog.Trigger asChild>\n <Button>Confirm</Button>\n </Dialog.Trigger>\n </section>\n </section>\n </Dialog.Content>\n </Dialog>\n );\n}\n",
|
||||
"type": "registry:block",
|
||||
"target": "components/retroui/preview/dialog-style-default.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user