import React from 'react' import clsx from 'clsx' export interface RadioOption { value: string label: string description?: string } export interface RadioGroupProps { name: string label?: string options: RadioOption[] value: string onChange: (value: string) => void className?: string } export const RadioGroup: React.FC = ({ name, label, options, value, onChange, className, }) => { return (
{label &&
{label}
}
{options.map((option) => { const checked = value === option.value return ( ) })}
) }