-
I love using Stitches, but coming from I think the If not, passing a callback as
I know I can achieve a similar result by building a component and using the css function to dynamically pass on values, but it's verbose and is harder to type right. But mainly, I was wondering why such a pattern did not exist here (and I guess it's by design). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there 👋 As you've mentioned, you can achieve this with the <Button css={{ opacity: 0.5 }}>Hello</Button> You're right that it's by design. Stitches won't support prop interpolation for performance reasons and to keep the runtime cost to a minimum. |
Beta Was this translation helpful? Give feedback.
Hi there 👋
As you've mentioned, you can achieve this with the
css
prop.You're right that it's by design. Stitches won't support prop interpolation for performance reasons and to keep the runtime cost to a minimum.