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