@wfp/ui
Version:
WFP UI Kit
25 lines (22 loc) • 737 B
TypeScript
import * as React from 'react';
import * as HookForm from 'react-hook-form';
import { InputModes } from './utils';
declare namespace TextInput {
interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
helperText?: string;
labelText?: string;
defaultValue?: string | number;
formItemClassName?: string;
inputWrapperClassName?: string;
hideLabel?: boolean;
invalid?: boolean | HookForm.FieldError;
invalidText?: string | React.ReactNode;
additional?: React.ReactNode;
children?: React.ReactNode;
light?: boolean;
type?: InputModes;
value?: string | number;
}
}
declare class TextInput extends React.Component<TextInput.TextInputProps> {}
export = TextInput;