NotificationsProviderAPI
React NotificationsProvider 元件的 API 參考文件。了解此匯出模組的 props、CSS 和其他 API。
示範
匯入
import { NotificationsProvider } from '@toolpad/core/useNotifications';
Notifications 的 Provider。此元件的子樹可以使用 useNotifications
Hook 來存取通知 API。通知會按照請求的順序顯示。
原生元件的 Props 也可使用。
名稱 | 類型 | 描述 |
---|
元件無法保留 ref。
Slot 名稱 | 類別名稱 | 預設元件 | 描述 |
---|---|---|---|
snackbar | Snackbar | 呈現 snackbar 的元件。 |
原始碼
如果您在本頁面中找不到資訊,請考慮查看元件的實作以取得更多詳細資訊。