/* eslint-disable react/no-array-index-key */ import type { Meta, StoryObj } from "@storybook/react"; import { ThemeProviderDecorators } from "@/storybook/Decorator"; import { RadioGroup, RadioGroupItem } from "./radio-group"; const meta = { title: "UI/Radio", component: RadioGroup, tags: ["autodocs"], decorators: ThemeProviderDecorators, } satisfies Meta; export default meta; type Story = StoryObj; const data = ["one", "two", "there"]; export const DefaultRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const PrimaryRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const SuccessRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const DangerRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const SmRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const MdRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const LgRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, }; export const XlRadioGrup: Story = { render: () => { return ( {data.map((item, index) => ( ))} ); }, };