Skip to content

API > @blocksuite/blocks > createPage

Function: createPage ​

createPage(workspace, options = {}): Promise< Page >

Parameters ​

ParameterType
workspaceWorkspace
optionsobject
options.id?string
options.title?string

Returns ​

Promise< Page >

Defined In ​

packages/blocks/src/_common/utils/init.ts:3