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
But I'm having trouble reusing some common compoundVariants, for example if I try to spread this inside a compoundVariants array of a tv object like this:
I get a typescript error that basically says the props of the objects don't match the props of the variants. Is there a way to handle this use case of reusable compoundVariants without typecasting it using a predefined tv object? Ideally, I'd want to reuse some common compoundVariant patterns inside of multiple tv object instances that share some common variant patterns like in the example above.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know it's possible to reuse some common variants without much type safety concerns, for example:
But I'm having trouble reusing some common compoundVariants, for example if I try to spread this inside a compoundVariants array of a tv object like this:
I get a typescript error that basically says the props of the objects don't match the props of the variants. Is there a way to handle this use case of reusable compoundVariants without typecasting it using a predefined tv object? Ideally, I'd want to reuse some common compoundVariant patterns inside of multiple tv object instances that share some common variant patterns like in the example above.
Beta Was this translation helpful? Give feedback.
All reactions