1 | import * as React from 'react';
|
2 | import Feedback from './Feedback';
|
3 | import { BsPrefixComponent } from './helpers';
|
4 |
|
5 | type FormControlElement =
|
6 | | HTMLInputElement
|
7 | | HTMLSelectElement
|
8 | | HTMLTextAreaElement;
|
9 |
|
10 | export interface FormControlProps {
|
11 | innerRef?: React.LegacyRef<FormControlElement>;
|
12 | size?: 'sm' | 'lg';
|
13 | plaintext?: boolean;
|
14 | readOnly?: boolean;
|
15 | disabled?: boolean;
|
16 | value?: string;
|
17 | onChange?: React.FormEventHandler<FormControlElement>;
|
18 | type?: string;
|
19 | id?: string;
|
20 | isValid?: boolean;
|
21 | isInvalid?: boolean;
|
22 | }
|
23 |
|
24 | declare class FormControl<
|
25 | As extends React.ElementType = 'input'
|
26 | > extends BsPrefixComponent<As, FormControlProps> {
|
27 | static Feedback: typeof Feedback;
|
28 | }
|
29 |
|
30 | export default FormControl;
|