import type { Meta, StoryObj } from "@storybook/react-vite"; import tailwind from "@tsed/tailwind-formio"; import { Loader } from "./Loader"; /** * Component to display loader * * ```tsx * import {Loader} from "@tsed/react-formio/molecules/loader/Loader"; * ``` */ export default { title: "Loader", component: Loader, argTypes: { isActive: { control: "boolean" }, color: { control: "text" }, icon: { control: "select", options: Object.keys(tailwind.templates.tailwind.ICONS["bx"]) }, className: { control: "text" }, iconset: { control: "select", options: ["lu", "bx"] } }, parameters: {}, tags: ["autodocs"] } satisfies Meta; type Story = StoryObj; export const Usage: Story = { args: { color: "text-primary", isActive: true } };