import React from 'react' import { RadioButton } from '../' import { actions, Story, STRING } from '../helpers/storybook' export default { title: 'RadioButton', component: RadioButton, argTypes: { id: STRING, ...actions('onChange', 'onFocus', 'onBlur'), }, args: { name: 'radio', disabled: false }, } as const export const BasicUsage: Story = (args) => type MultiStory = Story export const MultipleRadioButtons: MultiStory = ({ id, values, ...args }) => (
{values.map((value, i) => (
))}
) MultipleRadioButtons.args = { values: ['one', 'two'] }