Skip to content

style object as a function that exposes the component props #612

Answered by peduarte
olup asked this question in Ideas
Discussion options

You must be logged in to vote

Hi there 👋

As you've mentioned, you can achieve this with the css prop.

<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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants