1.2.0 • Published 8 years ago

poly-style v1.2.0

Weekly downloads
27
License
MIT
Repository
github
Last release
8 years ago

poly-style

poly-filling CSS attributes, for react style objects.

Updated for React v15. Poly-filling is now happening after attribute checking in the browser runtime. Only needed attributes are added.

example

var polyStyle = require('poly-style');

var styleObj = polyStyle({
  display: 'flex',
  flexDirection: 'column'
});

//...
  <div style={styleObj}>
    //...
  </div>

/*
> styleObj
{
  //  if in IE for example
  display: '-ms-flexbox',
  flexDirection: 'column',
  msFlexDirection: 'column'
}
*/

Attributes supported

  • display: 'flex'
  • flex
  • order
  • flex-direction
  • align-items
  • justify-content
  • flex-wrap
  • transform
  • user-select
1.2.0

8 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago