Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/FormGroup/FormGroup.d.ts 1.22 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { Theme } from "../styles/index.js";
  import { InternalStandardProps as StandardProps } from "../internal/index.js";
  import { FormGroupClasses } from "./formGroupClasses.js";
  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:
   *
   * - [Checkbox](https://mui.com/material-ui/react-checkbox/)
   * - [Switch](https://mui.com/material-ui/react-switch/)
   *
   * API:
   *
   * - [FormGroup API](https://mui.com/material-ui/api/form-group/)
   */
  export default function FormGroup(props: FormGroupProps): React.JSX.Element;