'use client'; import * as React from 'react'; import { CheckIcon } from '@/icons'; import { Checkbox as CheckboxPrimitive } from 'radix-ui'; import { cn } from '@/lib/utils'; import { disabledField, focusRing, invalidState } from '@/lib/cva-presets'; export type CheckboxProps = React.ComponentProps; /** * Binary toggle for a form. Supports an `indeterminate` checked value for * "some of the children are selected" cases. */ function Checkbox({ className, ...props }: CheckboxProps) { return ( {props.checked === 'indeterminate' ? ( ) : ( )} ); } export { Checkbox };