1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-30 09:20:02 +02:00

Merge branch 'develop' into add-badges-component

This commit is contained in:
ダーシノ
2018-12-29 16:58:11 +09:00
committed by GitHub
22 changed files with 3666 additions and 3589 deletions

19
docs/text.stories.js Normal file
View File

@@ -0,0 +1,19 @@
import { storiesOf } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies
import { // eslint-disable-line import/no-extraneous-dependencies
withKnobs, radios,
} from '@storybook/addon-knobs';
const stories = storiesOf('Text', module);
stories.addDecorator(withKnobs);
stories.add('text', () => {
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 `<span class="nes-text ${extraClass}">NES.css</span>`;
});