Docs

API reference

Svg

Place a verified, script-free SVG asset as a native layer.

presentation.tsx

<Svg id="brand-mark" x={8} y={82} w={8} h={8} src="assets/mark.svg" />

Props reference

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

APIPropertyType / valuesRequiredDescription
Shared native-layer propsidstringYesStable, unique layer identifier. Required for every visible native layer.
xnumberYesLeft position as a percentage of the slide canvas.
ynumberYesTop position as a percentage of the slide canvas.
wnumberYesFrame width as a percentage of the slide canvas.
hnumberYesFrame height as a percentage of the slide canvas.
groupIdstring—Groups native children without adding a wrapper element.
groupNamestring—Human-readable name for a group in Workbench.
sharedIdstring—Matches the same layer type across adjacent Morph slides; unique within each slide.
rotationnumber—Clockwise rotation in degrees.
opacitynumber—Layer opacity from 0 to 1.
motionJSON string—Versioned declarative action sequence. Keep a complete static final frame.
interactionJSON string—Versioned click interaction for slide navigation or a link.
SvgsrcstringYesScript-free local SVG asset path.
stagenumber—SVG animation stage index.
stageDurationnumber—SVG stage duration in seconds.
easingstring—Easing for the SVG stage.
sharedScenestring—Optional scene key shared across slides.

Required syntax

Use id, x, y, w, h, and a relative src under assets/. SVG files must be verified and script-free.

Portable asset rule

Do not supply remote executable SVG, inline Base64, or an absolute machine path. Keep the SVG beside the deck so validation and export can resolve it.