UNPKG

@wfp/ui

Version:
22 lines (19 loc) 623 B
import * as React from 'react'; import * as HookForm from 'react-hook-form'; declare namespace Input { interface InputProps 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; } } declare class Input extends React.Component<Input.InputProps> {} export = Input;