radiu group

This commit is contained in:
hamid zarghami
2025-12-30 09:25:18 +03:30
parent 0b9f0a347e
commit 1609f2be60
+3 -3
View File
@@ -13,12 +13,12 @@ type Props = {
const RadioGroup: FC<Props> = (props: Props) => { const RadioGroup: FC<Props> = (props: Props) => {
return ( return (
<div className='flex gap-5 items-center text-xs'> <div className='flex flex-wrap gap-5 items-center text-xs'>
{ {
props.items.map((item, index) => ( props.items.map((item, index) => (
<div key={index} className='flex gap-2 items-center'> <div key={index} className='flex flex-wrap gap-2 items-center'>
<Radio value={item.value} onChange={props.onChange} isActive={item.value === props.selected} /> <Radio value={item.value} onChange={props.onChange} isActive={item.value === props.selected} />
<div className='mt-0.5'> <div className='mt-0.5 whitespace-nowrap'>
{item.label} {item.label}
</div> </div>
</div> </div>