UNPKG

@navinc/base-react-components

Version:
22 lines (21 loc) 1.13 kB
import { MouseEventHandler, MutableRefObject, ReactNode } from 'react'; import { Input as FormInput } from './form-elements/shared.js'; import { IconName } from './icons/index.js'; import { InferComponentProps } from './types.js'; type InputFieldProps = { label?: string; hasSpaceForErrors?: boolean; helperIcon?: IconName; helperLinkAction?: MouseEventHandler<HTMLDivElement>; helperText?: string; isStatic?: boolean; errors?: string[]; lede?: ReactNode; touched?: boolean; childrenBeforeErrors?: ReactNode; innerRef?: MutableRefObject<HTMLInputElement | undefined>; tooltipText?: string; isPrivate?: boolean; } & InferComponentProps<typeof FormInput>; export declare const Input: import("styled-components").StyledComponent<({ autoFocus, children, className, label, hasSpaceForErrors, helperIcon, helperLinkAction, helperText, isInvalid, isStatic, value, required, type, errors, lede, touched, placeholder, childrenBeforeErrors, innerRef, tooltipText, isPrivate, ...props }: InputFieldProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export {};