atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.99k stars 68 forks source link

Support styled-components syntax #795

Open alexkas1977 opened 3 years ago

alexkas1977 commented 3 years ago

Is your feature request related to a problem? Please describe. ``export const ButtonComponent = styled.button border: none; width: 36px; height: 36px; background-color: rgba(255, 255, 255, 0); cursor: ${({ disabled}) => (disabled ? 'not-allowed' : 'pointer')}; ${({ styles }) => (styles ? styles : '')} `;


**Describe the solution you'd like**
support non-property based props resolving  ${({ styles }) => (styles ? styles : '')}
pancaspe87 commented 3 years ago

Hi @alexkas1977, thanks for raising this. We'll look into it along with #390 , which is currently in progress

alexkas1977 commented 3 years ago

Hi @alexkas1977, thanks for raising this. We'll look into it along with #390 , which is currently in progress

I believe, #390 is about the same Just, please, add possibility to resolve to more than one property or empty string