New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-with-important-style

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-with-important-style

allows inline !important styles

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

This high order component allows rendering inline styles with the !important flag.

Install it with npm

npm install react-with-important-style

To use it, import it, and then wrap either a dom component or a custom component.

import withImportantStyle from 'react-with-important-style';
var MySpan = withImportantStyle('span');
// or withImportantStyle(MyComponent);

var C = () => <MySpan style={{backgroundColor: 'red !important'}} />;

That's it!

Keywords

react

FAQs

Package last updated on 13 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts