radiu group
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user