We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
... to avoid remounting the same styles with dynamic expressions multiple times...
Inspired by https://compiledcssinjs.com/
import React from 'react'; import { CC, CS } from '@compiled/css-in-js'; export const EmphasisText = (props) => { const color = props.massive ? '#00B8D9' : '#36B37E'; return ( <CC> <CS hash="vmwvfg"> {[ '.cc-vmwvfg{color:var(--var-1ylxx6h);text-transform:uppercase;font-weight:600}', ]} </CS> <span className="cc-vmwvfg" style={{ '--var-1ylxx6h': color }}> {props.children} </span> </CC> ); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
... to avoid remounting the same styles with dynamic expressions multiple times...
Inspired by https://compiledcssinjs.com/
The text was updated successfully, but these errors were encountered: