import * as React from 'react'; import { cn } from '../utils/cn'; export interface CheckboxProps extends Omit< React.InputHTMLAttributes, 'type' > { label?: string; } const Checkbox = React.forwardRef( ({ className, label, id, ...props }, ref) => { const checkboxId = id || React.useId(); return (
{label && ( )}
); } ); Checkbox.displayName = 'Checkbox'; export { Checkbox };