From 9a0667cf3478f821261f45c1f718a51a7a07da42 Mon Sep 17 00:00:00 2001 From: ntnyq Date: Thu, 25 Jul 2024 05:17:52 +0800 Subject: [PATCH] feat(Dialog): add prop `teleported` to disable teleport --- apps/www/src/content/docs/dark-mode/vite.md | 2 +- .../src/lib/registry/default/ui/dialog/DialogContent.vue | 9 +++++++-- .../lib/registry/new-york/ui/dialog/DialogContent.vue | 9 +++++++-- apps/www/src/public/registry/styles/default/dialog.json | 2 +- apps/www/src/public/registry/styles/new-york/dialog.json | 2 +- 5 files changed, 17 insertions(+), 7 deletions(-) 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()