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