UNPKG

@payfit/unity-components

Version:

15 lines (14 loc) • 731 B
import { ReactNode } from 'react'; import { LabelProps } from '../../../../core/components/label/Label.js'; import { CheckboxProps } from '../checkbox/Checkbox.js'; export interface FieldProps extends Pick<LabelProps, 'isRequired' | 'requiredVariant'> { /** The label for the checkbox. */ children: ReactNode; /** Helper text to display below the checkbox. */ helperText?: ReactNode; /** A contextual link to display below the checkbox. */ contextualLink?: ReactNode; } export type CheckboxFieldProps = FieldProps & CheckboxProps; declare const CheckboxField: import('react').ForwardRefExoticComponent<FieldProps & CheckboxProps & import('react').RefAttributes<HTMLLabelElement>>; export { CheckboxField };