import { storiesOf } from '@storybook/vue' import helpers from '~/storybook/helpers' import BaseButton from './BaseButton.vue' storiesOf('Generic/BaseButton', module) .addDecorator(helpers.layout) .add('default', () => ({ components: { BaseButton }, template: `
Click me Disabled Loading
`, })) .add('icon', () => ({ components: { BaseButton }, template: `
With Text
`, })) .add('circle', () => ({ components: { BaseButton }, template: `
EN
`, })) .add('danger', () => ({ components: { BaseButton }, template: `
Danger Disabled Loading
`, })) .add('filled', () => ({ components: { BaseButton }, template: `
Filled Filled Danger Disabled Loading
`, })) .add('small', () => ({ components: { BaseButton }, template: `
Small S
`, })) .add('ghost', () => ({ // TODO: add documentation --> ghost button should only be used for very special occasions // e.g. for the ContentMenu + for the EditorMenuBarButtons components: { BaseButton }, template: `
`, }))