UNPKG

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