jsxstyle-like primitive components that pass inline props as style props to cxs.
- The
childrenprop is automatically assumed to be Not CSS. - The
componentprop lets you specify the base component. - The
propsprop (how meta!) lets you set non-style properties on the base component.
-
Handle pseudoclasses a bit more nicely. Right now, things look pretty gross:
<Block opacity={0.5} {...{':hover': { opacity: 1.0, }}}> Hover Me </Block>
Proposal:
<Block opacity={0.5} hover={{ opacity: 1.0 }}> Hover Me </Block>