spartan-ui
Version:
React component library that focusses on getting the basics right leaving the design up to you
20 lines (19 loc) • 581 B
TypeScript
import React, { FunctionComponent } from 'react';
import { CommonProps } from '../../types';
export interface InputProps extends CommonProps {
name: string;
id?: string;
type?: string;
disabled?: boolean;
autocomplete?: boolean;
autofocus?: boolean;
defaultValue?: string;
placeholder?: string;
readonly?: boolean;
required?: boolean;
value?: string;
onBlur?: (e: React.FocusEvent) => void;
onChange?: (e: React.ChangeEvent) => void;
}
declare const Input: FunctionComponent<InputProps>;
export default Input;