mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-01-17 21:58:27 +01:00
0d89cbf262
updating storybook to implement the two final lists #179
21 lines
697 B
JavaScript
21 lines
697 B
JavaScript
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('Lists', module);
|
|
stories.addDecorator(withKnobs);
|
|
|
|
stories.add('list', () => {
|
|
const selectedClass = radios('type', {
|
|
default: 'is-disc',
|
|
'is-circle': 'is-circle',
|
|
}, 'is-disc');
|
|
return `<ul class="nes-list ${selectedClass}">
|
|
<li>Good morning.</li>
|
|
<li>Thou hast had a good night's sleep, I hope.</li>
|
|
<li>Thou hast had a good afternoon</li>
|
|
<li>Good night.</li>
|
|
</ul>`;
|
|
});
|