chore: add story for LabeledButton

This commit is contained in:
mattwr18 2020-03-24 16:43:18 +01:00
parent 70bf870e4a
commit 863656f718

View File

@ -0,0 +1,35 @@
import { storiesOf } from '@storybook/vue'
import helpers from '~/storybook/helpers'
import LabeledButton from './LabeledButton.vue'
storiesOf('Generic/LabeledButton', module)
.addDecorator(helpers.layout)
.add('default', () => ({
components: { LabeledButton },
data: () => ({
filled: false,
}),
template: `
<labeled-button
icon="check"
:filled="filled"
label="All"
@click="filled = !filled"
/>
`,
}))
.add('filled', () => ({
components: { LabeledButton },
data: () => ({
filled: true,
}),
template: `
<labeled-button
icon="check"
:filled="filled"
label="All"
@click="filled = !filled"
/>
`,
}))