You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping this just turns into a question, but I'm trying to figure out if custom variants are supported by TypeScript, I tried adding a variant to a button using this methodology:
I also tried adding it via compoundVariants as well - and while this strategy works fine in both situations, I get TS errors whenever I try to apply it at the component.
Type '"gradient"' is not assignable to type '"solid" | "outline" | "soft" | "subtle" | "ghost" | "link" | undefined'.ts-plugin(2322)
Am I doing something wrong? Or is TS support for variants just not completed yet?
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Darwin
v22.12.0
3.17.1
3.25.0
2.11.11
pnpm@10.6.2
-
modules
,devtools
,app
,css
,site
,content
,runtimeConfig
,build
,future
,experimental
,compatibilityDate
,typescript
,cookieControl
,eslint
,i18n
,icon
,image
,ogImage
,sitemap
,turnstile
@vueuse/nuxt@13.1.0
,@nuxt/eslint@1.3.0
,@nuxt/ui-pro@3.1.0
,@nuxtjs/sitemap@7.2.10
,@nuxtjs/robots@5.2.10
,@nuxt/content@3.5.1
,nuxt-og-image@5.1.3
,@nuxt/image@1.10.0
,@nuxtjs/turnstile@1.0.0
,@dargmuesli/nuxt-cookie-control@9.0.2
,@nuxtjs/robots@5.2.10
,nuxt-auth-utils@0.5.20
,@nuxtjs/i18n@9.5.3
-
Version
v3.1.0
Reproduction
not needed for this situation
Description
I'm hoping this just turns into a question, but I'm trying to figure out if custom variants are supported by TypeScript, I tried adding a variant to a button using this methodology:
I also tried adding it via
compoundVariants
as well - and while this strategy works fine in both situations, I get TS errors whenever I try to apply it at the component.Am I doing something wrong? Or is TS support for variants just not completed yet?
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: