react-css-properties
v1.0.5
Published
Convert object style CSS properties into inline CSS string
Downloads
8
Maintainers
Readme
Convert React CSSProperties to inline css
Convert object style CSS properties into inline CSS string
Install
npm install react-css-properties
Usage
Typescript
import css from "react-css-properties";
console.log(css.fromReact({
backgroundColor: "black",
flex: 1,
fontSize: 12px
}))
Javascript
const css = require('react-css-properties');
console.log(css.fromReact({
backgroundColor: "black",
flex: 1,
fontSize: 12px
}))
Expected output:
background-color:black;flex:1;font-size:12px