Include example under "Merging Styles" for using a pattern inside a recipe #3304
Unanswered
rvankints-rm
asked this question in
Q&A
Replies: 0 comments
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.
-
It took me a bit of time to figure how to use a pattern inside a recipe.
As an example, I have a button CVA recipe in which I wanted to use the circle pattern. Using the following resulted in a typescript error:
But in the end, made it work with this:
In the section on "Merging Styles", the combination of
css
andcva
(orsva
) is covered, but for those cases, thecss
isn't used inside thecva
itself.Assuming my above solution is valid, it makes it very clear that the base
cva
extends itself from thecircle
pattern.Beta Was this translation helpful? Give feedback.
All reactions