mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-30 01:10:07 +02:00
docs(storybook): Insertng lists on storybook
Inserting all configuration of lists in storybook #179
This commit is contained in:
16
docs/lists.stories.js
Normal file
16
docs/lists.stories.js
Normal 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>`;
|
||||
});
|
Reference in New Issue
Block a user