Built for people who think better out loud.
1<script module>
2 import { defineMeta } from "@storybook/addon-svelte-csf";
3 import { Mic } from "lucide-svelte";
4 import IconButton from "./IconButton.svelte";
5
6 const { Story } = defineMeta({
7 title: "Components/IconButton",
8 component: IconButton,
9 argTypes: {
10 type: { control: "select", options: ["button", "submit", "reset"] },
11 disabled: { control: "boolean" },
12 "aria-label": { control: "text" },
13 },
14 });
15</script>
16
17<Story name="IconButton" args={{ type: "button", disabled: false, "aria-label": "Microphone" }}>
18 <Mic size={18} />
19</Story>