Skip to content

Commit

Permalink
chore: added BaseForm story
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Mar 6, 2024
1 parent 5e076f4 commit ab26050
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/stories/BaseForm.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type { Meta, StoryObj } from "@storybook/vue3";

import BaseForm from "@/forms/BaseForm.vue";

// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta<typeof BaseForm> = {
title: "Forms/BaseForm",
component: BaseForm,
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ["autodocs"],
};

export default meta;
type Story = StoryObj<typeof BaseForm>;
/*
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
* See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Default: Story = {
render: () => ({
components: { BaseForm },
template: "<BaseForm ><input type='email' required /></BaseForm>",
}),
};

0 comments on commit ab26050

Please sign in to comment.