import { ComponentMeta, ComponentStory } from '@storybook/react'; import React from 'react'; import Radios from './Radios'; export default { title: '2.Forms/Radios', component: Radios, parameters: { actions: { handles: ['onChange', 'changed', 'onBlur'], }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ; export const RadioGroup = Template.bind({}); RadioGroup.args = { id: 'radios', items: ['Charmander', 'Squirtle', 'Bulbasaur', 'Pikachu'], title: "Who's that Pokemon?", }; export const RadioGroupWithoutTitle = Template.bind({}); RadioGroupWithoutTitle.args = { id: 'radios', items: ['Charmander', 'Squirtle', 'Bulbasaur', 'Pikachu'], }; export const RadiosWithLongText = Template.bind({}); RadiosWithLongText.args = { id: 'a formatted id', items: [ 'I think anybody who is interested in keeping their money safe from the criminal banking system would want gold, silver, and Bitcoin.', 'If you like gold, there are many reasons you should like Bitcoin.', 'Whatever happens to bitcoin, other cryptocurrencies are gaining ground and more respect. Ethereum, for instance, has far more transparency.', ], title: 'What is your favorite bitCoin quote of 2021?', }; export const RadiosSetDefault = Template.bind({}); RadiosSetDefault.args = { id: 'radios', items: ['Charmander', 'Squirtle', 'Bulbasaur', 'Pikachu'], title: "Who's that Pokemon?", }; export const RadiosSetParticular = Template.bind({}); RadiosSetParticular.args = { id: 'radios', items: ['Charmander', 'Squirtle', 'Bulbasaur', 'Pikachu'], title: "Who's that Pokemon?", setWhichIsChecked: 2, };