UNPKG

808 BTypeScriptView Raw
1import * as React from 'react';
2
3import FormCheck from './FormCheck';
4import FormControl from './FormControl';
5import FormGroup from './FormGroup';
6import FormLabel from './FormLabel';
7import FormText from './FormText';
8
9import { BsPrefixComponent } from './helpers';
10
11export class FormRow<
12 As extends React.ElementType = 'div'
13> extends BsPrefixComponent<As> {}
14
15export interface FormProps {
16 innerRef?: React.LegacyRef<this>;
17 inline?: boolean;
18 validated?: boolean;
19}
20
21declare 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
32export default Form;