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

docs(storybook): Insertng lists on storybook

Inserting all configuration of lists in storybook

#179
This commit is contained in:
lucas.reis
2018-12-12 21:03:43 -02:00
parent 4fd118fa88
commit 4f40d70ead

16
docs/lists.stories.js Normal file
View File

@@ -0,0 +1,16 @@
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-circle',
'is-arrow': 'is-arrow',
'is-pointer': 'is-pointer',
}, 'is-circle');
return `<ul class="nes-list ${selectedClass}"> <li>Test</li> </ul>`;
});