stylis-plugin-logical
v3.0.1
Published
Stylis plugin allowing the use of CSS Logical Properties and Values
Downloads
4
Maintainers
Readme
stylis-plugin-logical
Stylis plugin allowing the use of CSS Logical Properties and Values.
Disclaimer: Supports only stylis v3
Usage
add stylis-plugin-logical
to your project
npm install stylis-plugin-logical
with emotion v10
import { jsx, css, CacheProvider } from "@emotion/core";
import createCache from "@emotion/cache";
import stylisPluginLogical from "stylis-plugin-logical";
const cache = createCache({
stylisPlugins: [stylisPluginLogical()]
});
function Root({children}) {
return (
<CacheProvider value={cache}>
{children}
</CacheProvider>
)
}