Docs

API reference

Slide

A complete canvas that holds native layers for one page of the deck.

presentation.tsx

<Slide id="slide-01" background="#F7F7F5" canvasWidth={1920} canvasHeight={1080} duration={5} fontSizeUnit="pt" theme="light">
  <Text id="title" x={8} y={8} w={84} h={14}>One clear claim</Text>
</Slide>

Props reference

Keep these values literal and serializable so Canvas, Inspector, validation, and export can process them reliably.

APIPropertyType / valuesRequiredDescription
SlideidstringYesStable slide identifier.
backgroundcolor string—Slide background color.
backgroundImagestring—Local background image path.
backgroundFitcover | contain | fill | scale-down—How a background image fills the canvas.
canvasWidthnumber—Target canvas width, typically 1920.
canvasHeightnumber—Target canvas height, typically 1080.
fontSizeUnit"pt"—Use pt so Text and Table font sizes are points.
durationnumber—Slide duration in seconds.
themestring—Presentation theme tone, such as light or dark.
slideTransitionstring—Transition to the next slide. Use morph only with compatible sharedId pairs.
transitionDurationnumber—Transition duration in seconds.
morphEasingstring—Easing for a Morph transition.
morphFadeUnmatchedboolean—Whether unmatched layers fade during Morph.
morphShapeSoftnessnumber—Softness for compatible shape Morph.
morphShapePrecisionnumber—Shape sampling precision for Morph.
morphCurveX1 / morphCurveY1 / morphCurveX2 / morphCurveY2number—Control points when morphEasing is custom.

Common props

Use id, background, canvasWidth, canvasHeight, duration, fontSizeUnit, and theme to establish a slide. Canvas dimensions describe the target canvas; duration is measured in seconds.

Contents

A Slide contains native layers. Keep frame values literal so Canvas and Inspector can work with them.