<script module lang="ts">
	import { defineMeta } from "@storybook/addon-svelte-csf";
	import Error from "./Error.svelte";

	const { Story } = defineMeta({
		title: "UI/Error",
		component: Error,
		tags: ["autodocs"],
		argTypes: {
			size: {
				control: { type: "inline-radio" },
				options: ["small", "large"]
			},
			label: { control: "text" }
		},
		args: {
			size: "small",
			label: "This email address is already in use."
		}
	});
</script>

<Story name="Small" />
<Story name="Large" args={{ size: "large" }} />
