import React, { forwardRef } from 'react'; import { Checkbox, type CheckboxProps } from '../checkbox'; import { HelperText } from '../helper-text'; import { labelVariants } from '../label/label'; export interface CheckboxFieldProps extends CheckboxProps { label?: string; helperText?: string; variant?: 'default' | 'destructive'; } const CheckboxField = forwardRef, CheckboxFieldProps>( ({ label, helperText, variant = 'default', ...props }, ref) => { return (
{helperText && {helperText}}
); } ); CheckboxField.displayName = 'CheckboxField'; export { CheckboxField };