2018-12-04 17:13:03 +02:00
|
|
|
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
|
2018-12-05 08:41:46 +02:00
|
|
|
withKnobs, radios,
|
2018-12-04 19:30:42 +02:00
|
|
|
} from '@storybook/addon-knobs';
|
2018-12-04 16:40:25 +02:00
|
|
|
|
2018-12-04 19:30:42 +02:00
|
|
|
const stories = storiesOf('Ballons', module);
|
|
|
|
stories.addDecorator(withKnobs);
|
|
|
|
|
|
|
|
stories.add('balloon', () => {
|
2018-12-05 08:41:46 +02:00
|
|
|
const selectedClass = radios('direction', {
|
|
|
|
default: '',
|
|
|
|
'from-left': 'from-left',
|
|
|
|
'from-right': 'from-right',
|
|
|
|
}, '');
|
|
|
|
return `<div class="balloon ${selectedClass}"> <p>Hello NES.css</p> </div>`;
|
2018-12-04 19:30:42 +02:00
|
|
|
});
|