diff --git a/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.stories.ts b/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.stories.ts new file mode 100644 index 000000000..f2edbb260 --- /dev/null +++ b/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.stories.ts @@ -0,0 +1,26 @@ +import type { StoryObj } from "@storybook/vue3"; +import MtFieldLabel from "./mt-field-label.vue"; +import { fn } from "@storybook/test"; +import type { SlottedMeta } from "@/_internal/story-helper"; + +export default { + title: "Components/Form/mt-field-label", + component: MtFieldLabel, + args: { + default: "Field Label", + id: "some-id", + "onUpdate:inheritance": fn(), + }, + argTypes: { + inheritance: { + control: { + type: "select", + }, + options: ["none", "linked", "unlinked"], + }, + }, +} satisfies SlottedMeta; + +type MtFieldLabelStory = StoryObj; + +export const Default: MtFieldLabelStory = {}; diff --git a/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.vue b/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.vue new file mode 100644 index 000000000..e66e77c8d --- /dev/null +++ b/packages/component-library/src/components/form/_internal/mt-field-label/mt-field-label.vue @@ -0,0 +1,131 @@ + + + + +