We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3392ae3 commit bb1889fCopy full SHA for bb1889f
2 files changed
components/ui/popover/popover-content.vue
@@ -1,5 +1,4 @@
1
<script setup lang="ts">
2
-import { cn } from "@/lib/utils"
3
import {
4
PopoverContent,
5
type PopoverContentEmits,
@@ -9,6 +8,9 @@ import {
9
8
} from "radix-vue"
10
import { type HTMLAttributes, computed } from "vue"
11
+// nuxt auto-import doesn't play nice with whatever vscode is thinking
12
+const cn = twMerge
13
+
14
defineOptions({
15
inheritAttrs: false,
16
})
lib/utils.ts utils/tw-merge.tslib/utils.ts renamed to utils/tw-merge.ts
@@ -1,6 +1,6 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
-export function cn(...inputs: ClassValue[]) {
+export default (...inputs: ClassValue[]) => {
return twMerge(clsx(inputs))
6
}
0 commit comments