🔧 chore: radioItem leftIcon use span

This commit is contained in:
Andre H 2024-03-01 13:48:33 +08:00
parent 4a86952810
commit ab77ce681a

View File

@ -75,8 +75,11 @@ export const RadioItem = ({
className={indicator({ className: indicatorProps?.className })} className={indicator({ className: indicatorProps?.className })}
/> />
</RadixRadio> </RadixRadio>
{leftIcon && {leftIcon && (
cloneIcon(leftIcon, { className: icon(), 'aria-hidden': true })} <span>
{cloneIcon(leftIcon, { className: icon(), 'aria-hidden': true })}
</span>
)}
{label && ( {label && (
<label <label
{...labelProps} {...labelProps}