UNPKG

mochi-ui

Version:

Mochi UI is a React component library that helps you build aweomse production ready UI components with a soft UI design.

21 lines (20 loc) 620 B
import React from 'react'; type Props = { domName?: string; value?: string; name?: string; placeholder?: string; error?: string; touched?: boolean; setTouched?: () => void; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; disabled?: boolean; } & ({ type: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search' | 'week'; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; } | { type?: 'textarea'; onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void; }); declare const Input: (props: Props) => React.JSX.Element; export default Input;