README
Crevid UI
All of Crevid's reusable and composable components should be HERE.
Usage
npm install crevid-ui import from 'crevid-ui/lib/*'
Contribution guidelines
- Write as much stateless components as you can, for the reason.. E.g:
#!jsx
const TextInput = ({ type, value, name, events, className }) => {
return (
<input
className={classNames('form-control', style.input, className)}
type={type}
value={value}
name={name}
{...events} />
)
}
- Local style
#!css
:local(.input) {
background-color: @input-background;
border: 1px solid @input-border;
padding: 6px 12px;
font-size: 14px;
...
}
#!javascript
import style from './style/input.less'
<input className={classNames('form-control', style.input, className)} ... />
- Eslint