UNPKG

@navinc/base-react-components

Version:
26 lines (25 loc) 992 B
import { HTMLInputTypeAttribute, ReactNode } from 'react'; import { Input } from './shared.js'; import { InferComponentProps } from '../types.js'; type AddressInputProps = { className?: string; label?: ReactNode; hasSpaceForErrors?: boolean; isInvalid?: boolean; required?: boolean; type?: HTMLInputTypeAttribute; errors?: string[]; lede?: ReactNode; onAddressSelected?: (addr: { city: string; state: string; street1: string; zip: string; country: string; }) => void; touched?: boolean; placeholder?: string; isPrivate?: boolean; } & InferComponentProps<typeof Input>; export declare const AddressInput: import("styled-components").StyledComponent<({ className, label, hasSpaceForErrors, isInvalid, value, required, type, errors, lede, onAddressSelected, touched, placeholder, isPrivate, ...props }: AddressInputProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export {};