Open igoldny opened 5 years ago
As of v3.3.0 styled-components released object syntax which is also supported by emotion and styletron.
styled:
const Button = styled.button({ color: 'blue' })
css prop:
const className = css({ color: 'blue' })
+1 Supporting object syntax seems reasonable when people use styled-system along with styled-component.
It would be great to have this functionality!
+1
As of v3.3.0 styled-components released object syntax which is also supported by emotion and styletron.
styled:
css prop: