Search
Loading...
Skip to content

Type Alias: ScrollToBlockAction

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

Action function for scrolling to a specific block

Parameters#

ParameterTypeDescription
blockIdnumber-
options?{ animate?: boolean; }-
options.animate?booleanWhether to animate the scroll (default: false)

Returns#

Promise<void>