import type { Meta, StoryObj } from '@storybook/react-vite';
import argTypes from '../../../.storybook/sgdsArgTypes';
import RadioButton, { RadioGroup } from '../RadioButton';
const meta = {
title: 'Components/Radio/Radio group',
component: RadioGroup,
argTypes: {
isInline: {
control: 'boolean',
description: 'Whether to display the radio buttons in the group inline'
},
name: {type: 'string'},
isSmall: argTypes.isSmall(),
children: argTypes.children()
},
args: {
children: <>
>,
name: 'propertyType'
}
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
};
export const SmallRadios: Story = {
args: {
isSmall: true
}
};
export const InlineRadios: Story = {
args: {
children: <>
>,
isInline: true
}
};