feat: more storybook stories
This commit is contained in:
19
components/smart/Modal.stories.js
Normal file
19
components/smart/Modal.stories.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import Modal from "./Modal.vue"
|
||||
|
||||
export default {
|
||||
component: Modal,
|
||||
title: "Smart/Modal",
|
||||
}
|
||||
|
||||
const Template = (_args, { argTypes }) => ({
|
||||
components: { Modal },
|
||||
props: Object.keys(argTypes),
|
||||
template: `<SmartModal v-bind="$props" v-on="$props">
|
||||
<template #header>Header</template>
|
||||
<template #body><div class="px-2">Body</template>
|
||||
<template #footer>Footer</template>
|
||||
</SmartModal>`,
|
||||
})
|
||||
|
||||
export const SmartModal = Template.bind({})
|
||||
SmartModal.args = {}
|
||||
Reference in New Issue
Block a user