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
392
Weekly
6.8M
Open issues
8
Bundle
~15 kB
Installation
npm install inline-style-prefixerCode 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
- 6.8M 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
- 8 open issues on GitHub