UNPKG

reverie-ui

Version:

A React UI library based on Tailwind CSS

12 lines (11 loc) 486 B
import React from 'react'; import { CommonControlProps } from '../../types'; declare type InputType = 'text' | 'password'; export interface InputProps extends CommonControlProps<HTMLInputElement> { type?: InputType; value?: string; onChange?: (val: string, ev: React.ChangeEvent<HTMLInputElement>) => void; placeholder?: string; } declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>; export default Input;