From 2cdcb18aeee48eabdbd625c63bb0fd3d7cce9046 Mon Sep 17 00:00:00 2001 From: MikeCAT Date: Fri, 26 Jan 2024 20:02:29 +0900 Subject: [PATCH] clarify description of duration for setToast --- .../docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx b/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx index ffff19fb0..f53563199 100644 --- a/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx +++ b/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx @@ -320,7 +320,7 @@ This API can be used to show the toast with custom message. | --- | --- | --- | | message | string | The message to be shown on the toast. | | closable | boolean | Indicates whether to show the closable button on toast to dismiss the toast. | -| duration | number | Determines the duration after which the toast should auto dismiss. To prevent autodimiss you can pass `Infinity`. | +| duration | number | Determines the duration in milliseconds after which the toast should auto dismiss. To prevent autodimiss you can pass `Infinity`. | To dismiss an existing toast you can simple pass `null`