Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/SnackbarContent/SnackbarContent.d.ts 1.25 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
41
42
  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 { PaperProps } from "../Paper/index.js";
  import { SnackbarContentClasses } from "./snackbarContentClasses.js";
  export interface SnackbarContentProps extends StandardProps<PaperProps, 'children'> {
    /**
     * The action to display. It renders after the message, at the end of the snackbar.
     */
    action?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<SnackbarContentClasses>;
    /**
     * The message to display.
     */
    message?: React.ReactNode;
    /**
     * The ARIA role attribute of the element.
     * @default 'alert'
     */
    role?: PaperProps['role'];
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  
  /**
   *
   * Demos:
   *
   * - [Snackbar](https://mui.com/material-ui/react-snackbar/)
   *
   * API:
   *
   * - [SnackbarContent API](https://mui.com/material-ui/api/snackbar-content/)
   * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
   */
  export default function SnackbarContent(props: SnackbarContentProps): React.JSX.Element;