UNPKG

849 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3
4export 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
16export 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://mui.com/components/checkboxes/)
25 * - [Switches](https://mui.com/components/switches/)
26 *
27 * API:
28 *
29 * - [FormGroup API](https://mui.com/api/form-group/)
30 */
31export default function FormGroup(props: FormGroupProps): JSX.Element;