0.0.3 • Published 6 years ago
ndla-button v0.0.3
ndla-button
Button component.
Installation
$ yarn add --save ndla-button
$ npm install ndla-button --save
Usage
Styling
/* Your project's main .scss import file */
@import '~ndla-button/scss/button'; // with webpack and sass-loader
@import '../path/to/node_modules/ndla-button/scss/button'; // direct reference
Basic example
import Button from 'ndla-button'
<Button onClick={() => alert('Hello worls')}>Click me!</Button>