Closed Anlerkan closed 2 years ago
I think we should be able to customize the checkbox input icon
customIcon
export interface CheckboxInputProps { item: RadioInputItem; onSelect: ( item: RadioInputItem, event?: React.SyntheticEvent<HTMLInputElement> ) => void; isSelected: boolean; isDisabled?: boolean; + customIcon?: React.ReactNode; customClassName?: string; testid?: string; }
const icon = customIcon || <CheckIcon />;
<span className={"checkbox-input-label__icon"}>{icon}</span>
isSelected
I think we should be able to customize the checkbox input icon
customIcon
prop to CheckboxInputconst icon = customIcon || <CheckIcon />;
<span className={"checkbox-input-label__icon"}>{icon}</span>
isSelected
is true.