@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
39 lines (32 loc) • 872 B
text/typescript
import MtUrlField from "./mt-url-field.vue";
import type { Meta, StoryObj } from "@storybook/vue3";
export type MtUrlFieldMeta = Meta<typeof MtUrlField>;
export default {
title: "Components/Form/mt-url-field",
component: MtUrlField,
render: (args) => ({
components: { MtUrlField },
setup: () => ({ args }),
template: `
<mt-url-field v-bind="args">
<template v-if="args.prefix"
{{ args.prefix }}
</template>
<template v-if="args.suffix"
{{ args.suffix }}
</template>
<template v-if="args.hint"
{{ args.hint }}
</template>
</mt-url-field>`,
}),
args: {
modelValue: "https://shopware.com",
label: "Url field",
size: "default",
},
} as MtUrlFieldMeta;
export type MtUrlFieldStory = StoryObj<typeof MtUrlField>;
export const DefaultStory: MtUrlFieldStory = {
name: "mt-url-field",
};