UNPKG

react-tailwind-input-ts

Version:

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

11 lines (10 loc) 420 B
import React from 'react'; type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search'; export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> { type?: InputType; label?: string; error?: string; containerClassName?: string; } declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>; export default Input;