Docs

API reference

Table

Present exact lookup values or a structured comparison.

presentation.tsx

<Table id="owners" x={9} y={28} w={82} h={48} cells="Market|Signal|Owner;North|Rising|Ava" fontSize={12} />

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.
TablecellsstringYesCell data: pipes separate columns and semicolons separate rows.
rowsnumber—Number of rows, from 1 through 50.
columns / colsnumber—Number of columns, from 1 through 50.
columnLabels / rowLabelsstring—Serialized labels for columns or rows.
columnWidths / rowHeightsstring—Serialized fractional track sizes.
cellOverridesJSON string—Per-cell visual overrides created by Workbench.
fontFamily / fontSize / fontWeightstring | number—Table type styling; fontSize is in points.
color / textColorcolor string—Table text color.
background / backgroundColor / bgcolor string—Table background color.
cellBackground / stripeBackgroundcolor string—Cell fill and alternating-row fill.
borderColor / borderWidth / borderStylecolor | number | solid | dashed | dotted—Table border styling.
textAlign / textVerticalAlignleft | center | right / top | middle | bottom—Cell alignment.
cellPaddingX / cellPaddingYnumber—Horizontal and vertical cell padding in pixels.

Required syntax

Use id, x, y, w, h, and cells. cells uses pipes between columns and semicolons between rows.

Formatting

Use rows, columns, fontSize, fontWeight, background, cellBackground, stripeBackground, borderColor, and borderWidth when needed. Tables are best for values people must inspect precisely.