NotificationsProviderAPI
React NotificationsProvider 组件的 API 参考文档。了解此导出模块的 props、CSS 和其他 API。
演示
导入
import { NotificationsProvider } from '@toolpad/core/useNotifications';
Notifications 的提供者。此组件的子树可以使用 useNotifications
hook 来访问 notifications API。通知按照请求的顺序显示。
原生组件的 Props 也可用。
名称 | 类型 | 描述 |
---|
该组件不能持有 ref。
Slot 名称 | 类名 | 默认组件 | 描述 |
---|---|---|---|
snackbar | Snackbar | 渲染 snackbar 的组件。 |
源代码
如果你在此页面中没有找到信息,请考虑查看组件的实现以获取更多详细信息。