7.0.0 • Published 1 year ago

inline-style-prefixer v7.0.0

Weekly downloads
1,148,461
License
MIT
Repository
github
Last release
1 year ago

inline-style-prefixer

A small, simple and fast vendor prefixer from JavaScript style object.

Installation

yarn add inline-style-prefixer

If you're still using npm, you may run npm i --save inline-style-prefixer.

Browser Support

It supports all major browsers with the following versions. For other, unsupported browses, we automatically use a fallback.

  • Chrome: 55+
  • Android (Chrome): 55+
  • Android (Stock Browser): 5+
  • Android (UC): 11+
  • Firefox: 52+
  • Safari: 13+
  • iOS (Safari): 13+
  • Opera: 30+
  • Opera (Mini): 12+
  • IE: 11+
  • IE (Mobile): 11+
  • Edge: 12+

It will only add prefixes if a property still needs them in one of the above mentioned versions. Therefore, e.g. border-radius will not be prefixed at all.

Need to support legacy browser versions? Don't worry - we got you covered. Check this guide.

Usage

import { prefix } from 'inline-style-prefixer'

const style = {
  transition: '200ms all linear',
  boxSizing: 'border-box',
  display: 'flex',
  color: 'blue'
}

const output = prefix(style)

output === {
  WebkitTransition: '200ms all linear',
  transition: '200ms all linear',
  MozBoxSizing: 'border-box',
  boxSizing: 'border-box',
  display: [ '-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex' ]
  color: 'blue'
}

Usage with TypeScript

You can use TypeScript definition from DefinitelyTyped using @types/inline-style-prefixer

yarn add @types/inline-style-prefixer

# alternatively use npm
npm i --save @types/inline-style-prefixer

Documentation

If you got any issue using this prefixer, please first check the FAQ's. Most cases are already covered and provide a solid solution.

Community

Here are some popular users of this library:

PS: Feel free to add your solution!

Support

Join us on Gitter. We highly appreciate any contribution. We also love to get feedback.

License

inline-style-prefixer is licensed under the MIT License. Documentation is licensed under Creative Common License. Created with ♥ by @rofrischmann and all contributors.

@alexghi/material-uisunbin-plugin-react-native-stylesheet-to-css-texttaro-plugin-convert-react-native-stylesheettest-only-chazzhou-vue-ten@likethemammal/react-primitives@likethemammal/react-primitives_react-native-web_latest@fela-next/fela-plugin-prefixervue-express-mongodb-boilerplatereact-portal-popreact-native-web-dctest-only-ten-design-vue@umidbekkarimov/material-ui@careteam/test-care-ui-reacthexidave-material-ui-oldmithril-modalzuosh-split-panevuetify-styled-componentssujester-componentsteasim-samplesnuxt-styled-componentsreact-native-slider-kf@infinitebrahmanuniverse/nolb-inl@sparted/react-native-webreact-native-web-templuck-design-test@everything-registry/sub-chunk-1915dignissimosistedelenitietdoloremquefugitmaterial-ui-zeroelsa-bottom-sheetux-video-playerv3-styled-componentsducimusaliquidthor-material-uimu-sveh-react-native-webui-boxelectrum-arcngager-material-uimui-legacymui-with-arrows@everydayhero/strangervuduvudu-too@exodus/react-native-web@expensify/react-native-webubervu-react-split-paneevenietdolortest-ray-componentstest-r-componentthanh-materialthe-strangervelocity-mui@cezaraugusto/venuscluedin-uicomponent-viewerchinese-material-uiclear-ui-basereact-split-pane-altchanjet-scrollerchanjet-uiceai-ui-kitcf-component-flexcf-style-providercss-keyframernano-cssnarcissusnative-basenative-base-security-patchednative-base-customtplus-scroller-mobiletplus-ui-mobileqls-custom-material-uiqlx-custom-material-uizsh-split-pane@kkemple/react-primitivesreact-motion-gridreact-mui-tablereact-grid-imagereact-guireact-ionsreact-ios-switchreact-layout-components@shubham1206agra/react-native-web@slope/material-uireact-magic-effectsreact-lookreact-markdown-sealed@phytonmk/nano-cssreact-input-enhancementsreact-native-domgr8rreact-apple-carouselpurposeprogressive-web-sdk@leifandersen/react-split-pane@miksu/styletron-engine-atomic@miksu/styletron-engine-monolithic@miksu/styletron-standard
6.0.3

1 year ago

6.0.2

1 year ago

6.0.4

1 year ago

7.0.0

1 year ago

6.0.1

3 years ago

6.0.0

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.2

6 years ago

4.0.0

6 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.5

7 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

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

0.6.7

8 years ago

0.6.6

8 years ago

0.6.5

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago