We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compoundVariants
v3.0.0-alpha.7
export default defineAppConfig({ ui: { colors: { neutral: "zinc", primary: "rose", }, button: { compoundVariants: [ { color: "neutral", variant: "outline", class: "ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg)] hover:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg)] aria-disabled:bg-[var(--ui-bg)] focus-visible:ring-2 focus-visible:ring-[var(--ui-border-inverted)]", }, ], }, }, });
Type '{ color: "neutral"; variant: "outline"; class: string; }[]' is not assignable to type 'DeepPartial<({ color: "primary"; variant: "solid"; class: string; size?: undefined; square?: undefined; loading?: undefined; leading?: undefined; trailing?: undefined; } | { color: "secondary"; variant: "solid"; ... 5 more ...; trailing?: undefined; } | ... 46 more ... | { ...; })[], string>'. Type '{ color: "neutral"; variant: "outline"; class: string; }[]' is not assignable to type '{ [key: string]: string | TightMap<string>; }'. Index signature for type 'string' is missing in type '{ color: "neutral"; variant: "outline"; class: string; }[]'.ts(2322)
Hi :) I am getting type errors when using compoundVariant.
compoundVariant
For example, here is my app.config.ts:
app.config.ts
I am getting the following type error for compoundVariants:
No response
The text was updated successfully, but these errors were encountered:
fix(templates): type error in app config
77d18d8
Resolves #2481
Thanks for the report! 😊
Sorry, something went wrong.
No branches or pull requests
Environment
Version
v3.0.0-alpha.7
Reproduction
Description
Hi :) I am getting type errors when using
compoundVariant
.For example, here is my
app.config.ts
:I am getting the following type error for
compoundVariants
:Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: