import type { Meta, StoryObj } from '@storybook/react-vite'; import { Button } from './Button.tsx'; import { Radio, RadioGroup } from './Radio.tsx'; const meta: Meta = { component: RadioGroup, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: {}, args: { label: 'Favorite sport', isDisabled: false, isRequired: false, description: '', children: ( <> Soccer Baseball Basketball ), }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const Validation: Story = { args: { isRequired: true, }, render: (args) => (
{ event.preventDefault(); }} className="flex flex-col items-start gap-2" > ), };