UNPKG

@navinc/base-react-components

Version:
25 lines (24 loc) 1.19 kB
import { HTMLInputTypeAttribute, ReactNode } from 'react'; import { Input } from './form-elements/shared.js'; import { InferComponentProps } from './types.js'; declare 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; }) => void; touched?: boolean; placeholder?: string; } & InferComponentProps<typeof Input>; export declare const AddressInput: ({ className, label, hasSpaceForErrors, isInvalid, value, required, type, errors, lede, onAddressSelected, touched, placeholder, ...props }: AddressInputProps) => JSX.Element; declare const StyledAddressInput: import("styled-components").StyledComponent<({ className, label, hasSpaceForErrors, isInvalid, value, required, type, errors, lede, onAddressSelected, touched, placeholder, ...props }: AddressInputProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export default StyledAddressInput;