Slide Pages and Elements

ISlidePage

ISlidePage describes a single page-like object in Univer Slides. Normal slides, masters, layouts, handout masters, and notes masters all use this structure and differ by pageType and their optional property block.

Page properties

PropertyTypeDescription
idstringUnique page ID.
pageTypePageTypePage kind, such as SLIDE, MASTER, or LAYOUT.
zIndexnumberRender order of the page.
titlestringPage title.
descriptionstringPage description.
pageBackgroundFillIColorStylePage background fill.
colorScheme?ThemeColorTypeTheme color scheme used by the page.
pageElements{ [elementId: string]: IPageElement }Elements on this page, keyed by element ID.
slideProperties?ISlidePropertiesProperties for normal slide pages.
layoutProperties?ILayoutPropertiesProperties for layout pages.
masterProperties?IMasterPropertiesProperties for master pages.

IPageElement

IPageElement is the shared container for all elements on a page. Every element has a set of transform fields (left, top, width, height, angle, scaleX, scaleY, flipX, flipY) and exactly one content payload selected by type.

Element typePayloadDescription
PageElementType.SHAPEshapePreset or custom shape, including its text and properties.
PageElementType.IMAGEimageImage properties, plus optional placeholder and link metadata.
PageElementType.TEXTrichTextRich-text element. The rich field can store IDocumentData.
PageElementType.SPREADSHEETspreadsheetDeprecated embedded worksheet payload.
PageElementType.DOCUMENTdocumentDeprecated embedded document payload.
PageElementType.SLIDEslideDeprecated embedded slide payload.

Example

TypeScript
const page: ISlidePage = {  id: 'slide-1',  pageType: PageType.SLIDE,  zIndex: 10,  title: 'Agenda',  description: '',  pageBackgroundFill: { rgb: 'rgb(255,255,255)' },  pageElements: {    title: {      id: 'title',      zIndex: 1,      left: 72,      top: 64,      width: 600,      height: 80,      title: 'Title',      description: '',      type: PageElementType.TEXT,      richText: {        text: 'Quarterly Review',      },    },  },}

Notes

  • pageOrder controls which slides are visible and in what order; zIndex controls drawing order.
  • Text elements can store plain text or richer document data through richText.rich.
  • Use customBlock for plugin-owned element payloads instead of overloading a deprecated embedded payload.

How is this guide?

© 2026 DreamNum Co., Ltd.