mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
16 lines
480 B
JavaScript
16 lines
480 B
JavaScript
|
|
import { storiesOf } from '@storybook/vue';
|
|
import MyButton from '~/components/Button.vue';
|
|
import Centered from '@storybook/addon-centered';
|
|
|
|
storiesOf("Button", module)
|
|
.addDecorator(Centered)
|
|
.add("rounded button", () => ({
|
|
template: '<my-button :rounded="true"> 👍 A Button with rounded edges</my-button>'
|
|
}))
|
|
.add("normal button", () => ({
|
|
components: { MyButton },
|
|
template: '<my-button :rounded="false">A Button with square edges</my-button>'
|
|
}));
|
|
|