Minor Changes
-
3ca1f24: Add support for
*Cssprop convention in JSX components.Any JSX prop ending with
Css(camelCase, e.g.inputCss,wrapperCss) is now treated as a style prop during static
extraction, enabling compound component patterns like:function Comp(props) { const { inputCss, wrapperCss, children } = props return ( <styled.div css={wrapperCss}> <styled.input css={inputCss} /> {children} </styled.div> ) } // Usage - styles are statically extracted const usage = <Comp inputCss={{ color: 'red.200' }} wrapperCss={{ display: 'flex' }} />
This works in both
allandminimalJSX style prop modes, with no configuration needed.