fix(types): handle ClassValue in ui prop

Resolves #3860
This commit is contained in:
Benjamin Canac
2025-04-12 18:28:44 +02:00
parent 4ba8503c60
commit eea14155aa

View File

@@ -1,4 +1,5 @@
import type { AcceptableValue as _AcceptableValue } from 'reka-ui' import type { AcceptableValue as _AcceptableValue } from 'reka-ui'
import type { ClassValue } from 'tailwind-variants'
import type { VNode } from 'vue' import type { VNode } from 'vue'
export interface TightMap<O = any> { export interface TightMap<O = any> {
@@ -99,7 +100,7 @@ type ComponentVariants<T extends { variants?: Record<string, Record<string, any>
} }
type ComponentSlots<T extends { slots?: Record<string, any> }> = Id<{ type ComponentSlots<T extends { slots?: Record<string, any> }> = Id<{
[K in keyof T['slots']]?: string [K in keyof T['slots']]?: ClassValue
}> }>
type GetComponentAppConfig<A, U extends string, K extends string> = type GetComponentAppConfig<A, U extends string, K extends string> =