跳到主要内容
跳到主要内容

NotificationsProviderAPI

React NotificationsProvider 组件的 API 参考文档。了解此导出模块的 props、CSS 和其他 API。

演示

导入

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


Notifications 的提供者。此组件的子树可以使用 useNotifications hook 来访问 notifications API。通知按照请求的顺序显示。

Props

原生组件的 Props 也可用。

名称类型描述
该组件不能持有 ref。

Slots

Slot 名称类名默认组件描述
snackbarSnackbar渲染 snackbar 的组件。

源代码

如果你在此页面中没有找到信息,请考虑查看组件的实现以获取更多详细信息。