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