IN

Inline Style Prefixer

inline-style-prefixer

Run-time Autoprefixer for JavaScript style objects

Utilities
react
react styling
prefixer
inline styles
autoprefixer
vendor prefix
userAgent
inline-style-prefixer
Utilities
javascript
Stars
748
Weekly
7.0M
Open issues
9
Bundle
~15 kB

Installation

npm install inline-style-prefixer

Code example

import { useInlineStylePrefixer } from "inline-style-prefixer";

export function Example() {
  const value = useInlineStylePrefixer();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by Robin Weser
  • 7.0M weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~15 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 9 open issues on GitHub

FAQs

Alternatives & similar libraries