UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

41 lines (38 loc) 1.17 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { InternalStandardProps as StandardProps, Theme } from '..'; import { FormGroupClasses } from './formGroupClasses'; export interface FormGroupProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> { /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<FormGroupClasses>; /** * Display group of elements in a compact row. * @default false */ row?: boolean; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; } /** * `FormGroup` wraps controls such as `Checkbox` and `Switch`. * It provides compact row layout. * For the `Radio`, you should be using the `RadioGroup` component instead of this one. * * Demos: * * - [Checkboxes](https://mui.com/components/checkboxes/) * - [Switches](https://mui.com/components/switches/) * * API: * * - [FormGroup API](https://mui.com/api/form-group/) */ export default function FormGroup(props: FormGroupProps): JSX.Element;