@bottledbrains/ui
Version:
A React UI library based on Tailwind CSS
16 lines (15 loc) • 511 B
TypeScript
import React, { FC } from 'react';
import { CommonControlProps } from '../../types';
import { InputNumberProps } from './InputNumber';
import { TextAreaProps } from './TextArea';
export interface InputProps extends CommonControlProps {
placeholder?: string;
value?: string;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
isPassword?: boolean;
}
declare const Input: FC<InputProps> & {
TextArea: FC<TextAreaProps>;
Number: FC<InputNumberProps>;
};
export default Input;