PageRecordType
See source codeThe RecordType definition for TLPage records. Defines validation, scope, and default properties for page records in the tldraw store.
Pages are scoped to the document level, meaning they persist across sessions and are shared in collaborative environments.
PageRecordType: import('@tldraw/store').RecordType<TLPage, 'index' | 'name'>
Example
const page = PageRecordType.create({
id: 'page:main',
name: 'Main Page',
index: 'a1',
})
Prev
pageIdValidatorNext
parentIdValidator