modern-react-ui-components
Version:
Modern React + TypeScript component library with Toaster, Input, and DatePicker components
22 lines (21 loc) • 794 B
TypeScript
import { default as React } from 'react';
export type InputSize = 'small' | 'medium' | 'large';
export type InputState = 'default' | 'hover' | 'focus' | 'active' | 'error' | 'disabled';
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
value?: string;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
placeholder?: string;
type?: string;
label?: string;
helperText?: string;
errorText?: string;
required?: boolean;
disabled?: boolean;
size?: InputSize;
state?: InputState;
fullWidth?: boolean;
className?: string;
}
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
export default Input;
//# sourceMappingURL=Input.d.ts.map