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