Skip to content

The open alternative to Salesforce, designed for AI.

567 B
Raw Blame
import { IconCheck, IconMinus } from '@ui/icon';

import styles from '../Checkbox.module.scss';
import { type CheckboxProps } from '../types/CheckboxProps';
import { CheckboxIndicator } from './CheckboxIndicator';
import { CheckboxRoot } from './CheckboxRoot';

export const CheckboxComponent = ({ children, ...props }: CheckboxProps) => (
  <CheckboxRoot {...props}>
    <CheckboxIndicator>
      <IconCheck className={styles.check} aria-hidden />
      <IconMinus className={styles.minus} aria-hidden />
    </CheckboxIndicator>
    {children}
  </CheckboxRoot>
);