1 | import * as React from 'react';
|
2 |
|
3 | import FormCheck from './FormCheck';
|
4 | import FormControl from './FormControl';
|
5 | import FormGroup from './FormGroup';
|
6 | import FormLabel from './FormLabel';
|
7 | import FormText from './FormText';
|
8 |
|
9 | import { BsPrefixComponent } from './helpers';
|
10 |
|
11 | export class FormRow<
|
12 | As extends React.ElementType = 'div'
|
13 | > extends BsPrefixComponent<As> {}
|
14 |
|
15 | export interface FormProps {
|
16 | innerRef?: React.LegacyRef<this>;
|
17 | inline?: boolean;
|
18 | validated?: boolean;
|
19 | }
|
20 |
|
21 | declare class Form<
|
22 | As extends React.ElementType = 'form'
|
23 | > extends BsPrefixComponent<As, FormProps> {
|
24 | static Row: typeof FormRow;
|
25 | static Group: typeof FormGroup;
|
26 | static Control: typeof FormControl;
|
27 | static Check: typeof FormCheck;
|
28 | static Label: typeof FormLabel;
|
29 | static Text: typeof FormText;
|
30 | }
|
31 |
|
32 | export default Form;
|