1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 |
|
4 | export interface FormGroupProps
|
5 | extends StandardProps<React.HTMLAttributes<HTMLDivElement>, FormGroupClassKey> {
|
6 | /**
|
7 | * The content of the component.
|
8 | */
|
9 | children?: React.ReactNode;
|
10 | /**
|
11 | * Display group of elements in a compact row.
|
12 | */
|
13 | row?: boolean;
|
14 | }
|
15 |
|
16 | export type FormGroupClassKey = 'root' | 'row';
|
17 |
|
18 | /**
|
19 | * `FormGroup` wraps controls such as `Checkbox` and `Switch`.
|
20 | * It provides compact row layout.
|
21 | * For the `Radio`, you should be using the `RadioGroup` component instead of this one.
|
22 | * Demos:
|
23 | *
|
24 | * - [Checkboxes](https://material-ui.com/components/checkboxes/)
|
25 | * - [Switches](https://material-ui.com/components/switches/)
|
26 | *
|
27 | * API:
|
28 | *
|
29 | * - [FormGroup API](https://material-ui.com/api/form-group/)
|
30 | */
|
31 | export default function FormGroup(props: FormGroupProps): JSX.Element;
|