Skip to content

BlockSuite API Documentation / @blocksuite/blocks / toast

Function: toast()

toast(editorHost, message, duration?): HTMLDivElement

Parameters

editorHost: EditorHost

message: string

duration?: number

Returns

HTMLDivElement

Example

ts
toast('Hello World');

Defined in

packages/affine/components/dist/toast/toast.d.ts:8