Replies: 1 comment 8 replies
-
not sure I understand the purpose, can you show your use-case through a complete example ? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The only guide in the document tells us that there is a way to infer types from
cva
ordefineRecipe
and not pass types into them. I think there is a need to accept types from the outer scope and as a single source of truth for types of variants.We already have the props (variants) type, Is there a way to use them as a validation type in recipes?
Problem Statement/Justification
The problem is we can not use our pre-defined types as a source of truth for our PandaCSS cva or recipes and it may end up with type inconsistencies.
Proposed Solution or API
cva
ordefineRecipe
should accept type:Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions