@payfit/unity-components
Version:
16 lines (15 loc) • 777 B
TypeScript
import { ReactNode } from 'react';
import { LabelProps } from '../label/Label.js';
import { TanstackPhoneNumberInputProps } from '../phone-number/TanstackPhoneNumberInput.js';
interface FieldProps extends Pick<LabelProps, 'isRequired' | 'requiredVariant'> {
/** The label for the text field. */
label: string;
/** Helper text to display below the text field. */
helperText?: ReactNode;
/** A contextual link to display below the select field. */
contextualLink?: ReactNode;
}
export interface PhoneNumberFieldProps extends FieldProps, TanstackPhoneNumberInputProps {
}
declare const TanstackPhoneNumberField: import('react').ForwardRefExoticComponent<PhoneNumberFieldProps & import('react').RefAttributes<unknown>>;
export { TanstackPhoneNumberField };