![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | lib/ | 2 years ago | - | |
![]() | modules/ | 2 years ago | - | |
![]() | LICENSE | 9 years ago | 1.1K | |
![]() | README.md | 9 years ago | 2.6K | d7c1522 post receive test [كارل مبارك] |
![]() | package.json | 2 years ago | 2.7K | |
![]() | webpack.dev.js | 8 years ago | 1.1K | |
![]() | webpack.prod.js | 8 years ago | 1.0K |
npm install reactcss --save
Define a default styles for your elements:
import reactCSS from 'reactcss'
const styles = reactCSS({
'default': {
card: {
background: this.props.background,
boxShadow: '0 2px 4px rgba(0,0,0,.15)',
},
},
})
Pass style definitions via inline styles:
<div style={ styles.card } />
Activate additional classes by passing down objects as additional parameters to reactCSS
:
const styles = reactCSS({
'default': {
card: {
background: '#fff',
boxShadow: '0 2px 4px rgba(0,0,0,.15)',
},
},
'zIndex-2': {
card: {
boxShadow: '0 4px 8px rgba(0,0,0,.15)',
},
},
}, {
'zIndex-2': props.zIndex === 2,
})
See the Full Documentation
Examples and projects built with reactCSS:
Felony - Next Level PGP Desktop App React Color - Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more Buffer App Components - A shared set of UI Components React Reactions - Use Reactions from Slack, Facebook, Pokemon, Github and Youtube