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 of the native component are also available.
Name | Type | Description |
---|
The component cannot hold a ref.
Slot name | Class name | Default component | Description |
---|---|---|---|
snackbar | Snackbar | The 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.