function RadioButtonIcon()

in packages/bui-core/src/Radio/RadioButtonIcon.tsx [15:38]


function RadioButtonIcon(props: IRadioButtonIconProps) {
  const { checked, size = 'medium', color, htmlColor = '#959aa5' } = props;

  return (
    <span
      className={clsx(prefixCls, {
        [`${prefixCls}-checked`]: checked,
      })}
    >
      <RadioButtonUncheckedIcon
        size={size}
        color={checked ? 'primary' : color}
        htmlColor={htmlColor}
        className={`${prefixCls}-outline`}
      />
      <RadioButtonCheckedIcon
        size={size}
        color={checked ? 'primary' : color}
        htmlColor={htmlColor}
        className={`${prefixCls}-contained`}
      />
    </span>
  );
}