开发者社区> 镜像站> NPM> react-style-normalizer
react-style-normalizer
React Style Normalizer
Last updated 6 years ago by radubrehar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-style-normalizer 
SYNC missed versions from official npm registry.

react-style-normalizer

Vendor prefixing and style normalization for React

Prefixes both style names and values, when needed.

Install

$ npm i react-style-normalizer --save

Usage

var normalize = require('react-style-normalizer')

var style = normalize({
	userSelect: 'none',// in chrome/safari it becomes WebkitUserSelect: 'none'
	display: 'flex' //on safari it becomes display: '-webkit-flex'
})

React.render(<div style={style} />, mountNode)

Contributing

Use Github issues for feature requests and bug reports.

We actively welcome pull requests.

License

MIT

Current Tags

  • 1.2.8                                ...           latest (6 years ago)

19 Versions

  • 1.2.8                                ...           6 years ago
  • 1.2.7                                ...           6 years ago
  • 1.2.6                                ...           6 years ago
  • 1.2.5                                ...           6 years ago
  • 1.2.4                                ...           6 years ago
  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.6                                ...           6 years ago
  • 1.1.5                                ...           6 years ago
  • 1.1.4                                ...           6 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.2                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago