'use client'; import * as React from 'react'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { Check, Minus } from 'lucide-react'; import { cn } from '@/lib/utils'; /** * 标准 shadcn/ui Checkbox 组件 * 基于 @radix-ui/react-checkbox */ const Checkbox = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( {props.checked === 'indeterminate' ? ( ) : ( )} )); Checkbox.displayName = CheckboxPrimitive.Root.displayName; export { Checkbox };