react-style-object-to-css

1.1.2 • Public • Published

Summary

Convert React style defined as an object to pure inline css (string).

Installation

	npm install react-style-object-to-css

Example

const reactToCSS = require('react-style-object-to-css')
const styleObj = {
	backgroundColor: 'blue',
	fontSize: 14
}

// result === "background-color: blue;  font-size: 14px;"
const result = reactToCSS(styleObj)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.215,553latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.215,553
1.1.110
1.1.00
1.0.00

Package Sidebar

Install

npm i react-style-object-to-css

Weekly Downloads

15,563

Version

1.1.2

License

MIT

Unpacked Size

7.26 kB

Total Files

6

Last publish

Collaborators

  • calvin92