Skip to content

brigand/react-with-important-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published