1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-01-17 13:48:13 +01:00
nes.css/story/buttons.stories.js

20 lines
641 B
JavaScript
Raw Normal View History

import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
2018-12-04 19:30:42 +02:00
import { // eslint-disable-line import/no-extraneous-dependencies
withKnobs, radios,
2018-12-04 19:30:42 +02:00
} from '@storybook/addon-knobs';
2018-12-04 19:30:42 +02:00
const stories = storiesOf('Buttons', module);
stories.addDecorator(withKnobs);
stories.add('button', () => {
const extraClass = radios('class', {
default: '',
'is-primary': 'is-primary',
'is-success': 'is-success',
'is-warning': 'is-warning',
'is-error': 'is-error',
'is-disabled': 'is-disabled',
}, '');
return `<button type="button" class="nes-btn ${extraClass}">Normal</button>`;
2018-12-04 19:30:42 +02:00
});