import React from 'react' import { Flex, RadioCard, Text, TextInputField } from '../' import { Action, FIELD_ARGS, Story } from '../helpers/storybook' export default { title: 'RadioCard', component: RadioCard, parameters: { cactus: { overrides: { maxWidth: '700px' } } }, } as const export const BasicUsage = (): React.ReactElement => { const ref = React.useRef({ focus: () => document.getElementById('text')?.focus(), }) return ( Regular Above Checked Disabled Forever Title
Description Below
) } BasicUsage.parameters = { controls: { disable: true } } type GroupStory = Story< typeof RadioCard.Group, { buttonLabel: string onChange: Action> } > export const RadioCardGroup: GroupStory = ({ buttonLabel, onChange, ...args }) => { const [value, setValue] = React.useState('left') return ( That's right That's wrong {buttonLabel} ) } RadioCardGroup.argTypes = { buttonLabel: { name: 'button label' }, ...FIELD_ARGS, } RadioCardGroup.args = { label: 'A Label', disabled: false, tooltip: 'Here there be radio buttons', autoTooltip: true, buttonLabel: 'Supercalifragilisticexpialidocious', }