🔧 chore: add htmlFor to label in radioItem

This commit is contained in:
Andre H 2024-03-01 13:48:54 +08:00
parent ab77ce681a
commit e9d38e0d3b

View File

@ -67,7 +67,10 @@ export const RadioItem = ({
const componentId = id ?? kebabCaseLabel; const componentId = id ?? kebabCaseLabel;
return ( return (
<label className={wrapper({ className: wrapperProps?.className })}> <label
htmlFor={componentId}
className={wrapper({ className: wrapperProps?.className })}
>
<RadixRadio {...props} className={radio({ className })} id={componentId}> <RadixRadio {...props} className={radio({ className })} id={componentId}>
<RadixIndicator <RadixIndicator
forceMount forceMount