跳到內容
跳到內容

NotificationsProviderAPI

React NotificationsProvider 元件的 API 參考文件。了解此匯出模組的 props、CSS 和其他 API。

示範

匯入

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


Notifications 的 Provider。此元件的子樹可以使用 useNotifications Hook 來存取通知 API。通知會按照請求的順序顯示。

Props

原生元件的 Props 也可使用。

名稱類型描述
元件無法保留 ref。

Slots

Slot 名稱類別名稱預設元件描述
snackbarSnackbar呈現 snackbar 的元件。

原始碼

如果您在本頁面中找不到資訊,請考慮查看元件的實作以取得更多詳細資訊。