@thenewboston/ui
Version:
UI Library for the thenewboston community
23 lines (22 loc) • 646 B
TypeScript
import { ChangeEvent, FC, FocusEvent } from 'react';
import '../../../styles/colors.css';
import '../../../styles/font.css';
import './TextField.scss';
export declare enum TextFieldType {
text = "text",
number = "number"
}
export interface TextFieldProps {
className?: string;
disabled?: boolean;
error?: boolean;
focused?: boolean;
name?: string;
onBlur?(e: FocusEvent<HTMLInputElement>): void;
onChange?(e: ChangeEvent<HTMLInputElement>): void;
placeholder?: string;
type?: TextFieldType;
value?: string;
}
declare const TextField: FC<TextFieldProps>;
export { TextField };