UNPKG

@eviljs/reactx

Version:
12 lines (11 loc) 546 B
import type { ElementProps, Props } from '@eviljs/react/props'; export declare function Input(props: Props<InputProps>): React.JSX.Element; export interface InputProps extends Omit<ElementProps<'input'>, 'onChange'> { autoComplete?: undefined | string; autoFocus?: undefined | boolean; label?: undefined | string; tabIndex?: undefined | number; type?: undefined | React.HTMLInputTypeAttribute; value?: undefined | string; onChange?: undefined | ((value: string, event: React.ChangeEvent<HTMLInputElement>) => void); }