UNPKG

785 BTypeScriptView Raw
1import * as React from 'react';
2import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3type FormControlElement = HTMLInputElement | HTMLTextAreaElement;
4export interface FormControlProps extends BsPrefixProps, Omit<React.InputHTMLAttributes<FormControlElement>, 'size'> {
5 htmlSize?: number;
6 size?: 'sm' | 'lg';
7 plaintext?: boolean;
8 readOnly?: boolean;
9 disabled?: boolean;
10 value?: string | string[] | number;
11 onChange?: React.ChangeEventHandler<FormControlElement>;
12 type?: string;
13 isValid?: boolean;
14 isInvalid?: boolean;
15}
16declare const _default: BsPrefixRefForwardingComponent<"input", FormControlProps> & {
17 Feedback: BsPrefixRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
18};
19export default _default;