@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/).
38 lines (33 loc) • 905 B
text/typescript
import type { SlottedMeta } from "@/_internal/story-helper";
import MtText from "./mt-text.vue";
import type { StoryObj } from "@storybook/vue3";
type MtTextSlots = "default";
export type MtTextMeta = SlottedMeta<typeof MtText, MtTextSlots>;
export default {
title: "Components/Content/mt-text",
component: MtText,
args: {
default: "Text",
},
argTypes: {
weight: {
control: { type: "select" },
options: ["regular", "medium", "semibold", "bold"],
},
size: {
control: { type: "select" },
options: ["2xs", "xs", "s", "m", "l", "xl", "2xl"],
},
color: {
control: { type: "text" },
},
},
render: (args) => ({
components: { MtText },
setup() {
return { args };
},
template: `<mt-text v-bind="args">{{ args.default }}</mt-text>`,
}),
} satisfies MtTextMeta;
export const DefaultStory: StoryObj<MtTextMeta> = {};