goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
42 lines • 1.3 kB
TypeScript
import { default as React } from 'react';
export interface PhoneNumberFieldProps {
value?: string | number;
onChange?: (value: string) => void;
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
label?: React.ReactNode;
helperText?: string;
placeholder?: string;
id?: string;
autoComplete?: string;
styles?: {
disabled?: boolean;
required?: boolean;
theme?: string;
width?: string;
minWidth?: string;
maxWidth?: string;
height?: string;
minHeight?: string;
maxHeight?: string;
marginTop?: string;
marginBottom?: string;
marginLeft?: string;
marginRight?: string;
padding?: string;
fontSize?: string;
fontWeight?: string | number;
lineHeight?: string;
borderWidth?: string;
borderRadius?: string;
helperTextType?: 'error' | 'info';
requiredIndicatorText?: string;
backgroundColor?: string;
borderColor?: string;
color?: string;
fontFamily?: string;
};
}
declare const PhoneNumberField: React.FC<PhoneNumberFieldProps>;
export default PhoneNumberField;
//# sourceMappingURL=index.d.ts.map