Replies: 1 comment
-
So, I discovered that sprinkles can do this already, so switching from recipes to that solved my issue :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For recipes with a large number of variants, it would be helpful if there was a way to extract all of the names of the variant keys as an array of strings. The reason for this is prop forwarding - I want to be able to split the component's props into two separate objects, one which I can pass to the recipe, and the other which I can spread into the DOM element. (I'm using Solid's splitProps() for this, but the concept applies equally well to React or other frameworks).
Currently the only way to do this is to manually maintain the list of property keys and ensure that it is in sync with the recipe.
Beta Was this translation helpful? Give feedback.
All reactions