feat: more storybook stories
This commit is contained in:
17
components/button/Secondary.stories.js
Normal file
17
components/button/Secondary.stories.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Secondary from "./Secondary.vue"
|
||||
|
||||
export default {
|
||||
component: Secondary,
|
||||
title: "Components/Button",
|
||||
}
|
||||
|
||||
const Template = (_args, { argTypes }) => ({
|
||||
components: { Secondary },
|
||||
props: Object.keys(argTypes),
|
||||
template: `<ButtonSecondary v-bind="$props" v-on="$props" />`,
|
||||
})
|
||||
|
||||
export const ButtonSecondary = Template.bind({})
|
||||
ButtonSecondary.args = {
|
||||
label: "Secondary",
|
||||
}
|
||||
Reference in New Issue
Block a user