Skip to content

NotificationsProvider API

API reference docs for the React NotificationsProvider component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { NotificationsProvider } from '@toolpad/core/useNotifications';


Provider for Notifications. The subtree of this component can use the useNotifications hook to access the notifications API. The notifications are shown in the same order they are requested.

Props

Props of the native component are also available.

NameTypeDescription
The component cannot hold a ref.

Slots

Slot nameClass nameDefault componentDescription
snackbarSnackbarThe component that renders the snackbar.

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.