RadioCell
A selectable cell that pairs a radio button with a title and description for single-choice selections.@coinbase/cds-web@8.64.4
import { RadioCell } from '@coinbase/cds-web/controls/RadioCell'
Peer dependencies
- framer-motion: ^10.18.0
Related components
Basic usage
Loading...
Live Codefunction RadioCellExample() { const [value, setValue] = React.useState('one'); return ( <VStack gap={2}> <RadioCell title="Option one" description="With a description" checked={value === 'one'} onChange={() => setValue('one')} value="one" name="radio-cell-example" /> <RadioCell title="Option two" checked={value === 'two'} onChange={() => setValue('two')} value="two" name="radio-cell-example" /> <RadioCell title="Disabled option" checked={false} onChange={() => {}} value="three" name="radio-cell-example" disabled /> </VStack> ); }