import { storiesOf } from '@storybook/vue' import helpers from '~/storybook/helpers' import BaseButton from './BaseButton.vue' storiesOf('BaseButton', module) .addDecorator(helpers.layout) .add('Default', () => ({ components: { BaseButton }, template: 'Click me', })) .add('With Icon', () => ({ components: { BaseButton }, template: 'With Icon', })) .add('Icon Only', () => ({ components: { BaseButton }, template: '', })) .add('Styles and States', () => ({ components: { BaseButton }, template: ` Default Primary Danger Disabled Loading `, }))