Appearance
Function: ToastNotification()
ts
function ToastNotification(props: UiToastNotificationProps): Block;Defined in: src/renderer/blocks/index.ts:1201
Auto-dismissing toast notification. Resolves the parent render session via the resolve callback when the user dismisses (or after duration).
Parameters
| Parameter | Type |
|---|---|
props | UiToastNotificationProps |
Returns
Example
ts
ToastNotification({
title: 'Saved',
text: 'Your changes are live.',
duration: 4000,
});