UNPKG

@material-ui/core

Version:

Quickly build beautiful React apps. Material-UI 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.

44 lines (41 loc) 1.24 kB
import * as React from 'react'; import { SxProps } from '@material-ui/system'; import { Theme } from '../styles'; import { InternalStandardProps as StandardProps } from '..'; import { PaperProps } from '../Paper'; import { SnackbarContentClasses } from './snackbarContentClasses'; 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: * * - [Snackbars](https://material-ui.com/components/snackbars/) * * API: * * - [SnackbarContent API](https://material-ui.com/api/snackbar-content/) * - inherits [Paper API](https://material-ui.com/api/paper/) */ export default function SnackbarContent(props: SnackbarContentProps): JSX.Element;