@hhgtech/hhg-components
Version:
Hello Health Group common components
17 lines (16 loc) • 815 B
TypeScript
import React, { DetailedHTMLProps, InputHTMLAttributes } from 'react';
import type * as PhoneInputUtilsType from 'react-phone-number-input';
export type PhoneProps = Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onChange'> & {
isError?: boolean;
placeholder?: string;
countries?: PhoneInputUtilsType.Country[];
defaultCountry?: PhoneInputUtilsType.Country;
countryCallingCodeEditable?: boolean;
defaultValue?: string;
name?: string;
value?: string;
onChange?: (v: string) => void;
arrowComponent?: () => JSX.Element;
flagComponent?: (props: PhoneInputUtilsType.FlagProps) => JSX.Element;
};
export declare const Phone: React.ForwardRefExoticComponent<Omit<PhoneProps, "ref"> & React.RefAttributes<React.Ref<unknown>>>;