-
Hi everyone, I'm trying stitches in a vue project and have no idea how to use variants in this framework. With react, variants it's used as props because we use The point is, I'm using Let you an example in codesanbox I am spanish speaker, sorry for my bad english 🙈 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
here's a working example https://codesandbox.io/s/stitches-with-vue-b7wvy8?file=/src/styles/text.style.js hope this help |
Beta Was this translation helpful? Give feedback.
css()
also acceptsvariants
props, you can use that to create variants just like the react one, then pass the component props to the returned function.here's a working example https://codesandbox.io/s/stitches-with-vue-b7wvy8?file=/src/styles/text.style.js
hope this help