0.0.9 • Published 9 years ago
muub-react-buttons v0.0.9
muub-react-buttons
This will be a set of custom react buttons. Right now it only includes one button component with some variations.
npm install --save muub-react-buttonsimport {Button} from 'muub-react-buttons';
class Example extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>REACT BUTTONS EXAMPLE</h1>
<Button buttonStyle={'rounded'}
onClick={() => alert('hello')}>
Click me
</Button>
</div>
)
}
}| Props | Values |
|---|---|
| onClick | func (required): Click event handler. |
| buttonStyle | string (values: default | rounded): Sets one of pre configured button styles. |