@payfit/unity-components
Version:
15 lines (14 loc) • 762 B
TypeScript
import { ReactNode } from 'react';
import { TanstackCheckboxProps } from '../checkbox/TanstackCheckbox.js';
import { LabelProps } from '../label/Label.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 TanstackCheckboxFieldProps = FieldProps & TanstackCheckboxProps;
declare const TanstackCheckboxField: import('react').ForwardRefExoticComponent<FieldProps & TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
export { TanstackCheckboxField };