Search Docs
Loading...
Skip to content

Type Alias: ScrollToBlockAction

type ScrollToBlockAction = (blockId, options?) => Promise<void>;

Action function for scrolling to a specific block

Parameters#

Parameter Type Description
blockId number -
options? { animate?: boolean; } -
options.animate? boolean Whether to animate the scroll (default: false)

Returns#

Promise<void>