diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 41a34aa4..da6737cc 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -570,6 +570,13 @@ export const Index = { component: () => import("../src/lib/registry/default/example/DialogDemo.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/DialogDemo.vue"], }, + "DialogForm": { + name: "DialogForm", + type: "components:example", + registryDependencies: ["button","form","dialog","input","toast"], + component: () => import("../src/lib/registry/default/example/DialogForm.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/DialogForm.vue"], + }, "DialogScrollBodyDemo": { name: "DialogScrollBodyDemo", type: "components:example", @@ -2020,6 +2027,13 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/DialogDemo.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/DialogDemo.vue"], }, + "DialogForm": { + name: "DialogForm", + type: "components:example", + registryDependencies: ["button","form","dialog","input","toast"], + component: () => import("../src/lib/registry/new-york/example/DialogForm.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/DialogForm.vue"], + }, "DialogScrollBodyDemo": { name: "DialogScrollBodyDemo", type: "components:example", diff --git a/apps/www/src/content/docs/components/dialog.md b/apps/www/src/content/docs/components/dialog.md index de448dbb..0b9c4e26 100644 --- a/apps/www/src/content/docs/components/dialog.md +++ b/apps/www/src/content/docs/components/dialog.md @@ -62,6 +62,10 @@ import { +### Dialog Form + + + ## Notes To activate the `Dialog` component from within a `Context Menu` or `Dropdown Menu`, you must encase the `Context Menu` or `Dropdown Menu` component in the `Dialog` component. For more information, refer to the linked issue [here](https://github.com/radix-ui/primitives/issues/1836). diff --git a/apps/www/src/content/docs/dark-mode/vite.md b/apps/www/src/content/docs/dark-mode/vite.md index a7795237..a0108c09 100644 --- a/apps/www/src/content/docs/dark-mode/vite.md +++ b/apps/www/src/content/docs/dark-mode/vite.md @@ -33,7 +33,7 @@ import { Button } from '@/components/ui/button' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu' // Pass { disableTransition: false } to enable transitions -const mode = useColorMode(); +const mode = useColorMode()