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