import { FormFieldProps, ValidationStatus } from 'onekijs-framework'; import { FieldLayoutProps } from '../field/typings'; import { ReactNode } from 'react'; export interface CheckboxProps extends Omit< React.InputHTMLAttributes, 'type' | 'onChange' | 'value' | 'checked' | 'defaultValue' > { label?: ReactNode; onChange?: (checked: boolean) => void; value?: boolean; bordered?: boolean; status?: ValidationStatus; } export type FormCheckboxProps = CheckboxProps & FormFieldProps & FieldLayoutProps & { defaultValue?: boolean; FieldComponent?: React.FC; };