styled-jsx-container
v0.1.17
Published
A copy of [email protected] work where we manually added support for the new container queries.
Downloads
24
Readme
styled-jsx-container
!!! 0.1.x versions won't work, still figuring out why, will update to 1.0.0 once it's fully functionning. Actively working on it. Please check the following issue. Currently trying to fix plugin compatibility.
This is a copy of styled-jsx version 5.1.1 used by [email protected] modified to support container queries via stylis-cq. This is theorically an exact copy of styled-jsx set to use stylis-cq instead of stylis.
Getting started
Firstly, install the package:
npm install --save styled-jsx-container
Next, add styled-jsx-container/babel
to plugins
in your babel configuration:
{
"plugins": ["styled-jsx-container/babel"]
}
The rest of the configuration and documentation will be the exact same as the original styled-jsx v5.1.1
Big thanks to Ange as he's the one who first figured out how to add the container query.