Document Stack
Document Stack
Docs

Element Properties Reference

Complete reference of all element properties for text, image, field, table, icon, and line elements.

Common Properties

All elements share these base properties:

PropertyTypeDescription
idstringUnique identifier (auto-generated)
typestringElement type: text, image, field, table, icon, line
namestringDisplay name shown in layers panel
xnumberHorizontal position in pixels from left edge
ynumberVertical position in pixels from top edge
widthnumberElement width in pixels
heightnumberElement height in pixels
rotationnumberRotation angle in degrees (0–360)
opacitynumberOpacity from 0 (invisible) to 1 (fully visible)
lockedbooleanWhether the element is locked from editing
visiblebooleanWhether the element is visible
pagenumberPage number the element belongs to

Text Element Properties

PropertyTypeDescription
contentstringThe text content to display
fontSizenumberFont size in pixels
fontFamilystringFont family name
fontWeightstringnormal, bold, or numeric (100–900)
fontStylestringnormal or italic
textAlignstringleft, center, right, justify
colorstringText color (hex, rgb, or named)
lineHeightnumberLine height multiplier
letterSpacingnumberLetter spacing in pixels
textDecorationstringnone, underline, line-through
textTransformstringnone, uppercase, lowercase, capitalize

Image Element Properties

PropertyTypeDescription
srcstringImage URL (HTTPS)
objectFitstringcover, contain, fill, none
objectPositionstringPosition within container (e.g., center, top left)
borderRadiusnumberCorner rounding in pixels

Field Element Properties

PropertyTypeDescription
fieldKeystringData binding key (maps to API data)
defaultValuestringFallback value when data is not provided
formatstringOptional format (date, currency, number)

Field elements also support all text styling properties (fontSize, fontFamily, color, etc.).

Table Element Properties

PropertyTypeDescription
columnsarrayColumn definitions with key, header, width
rowsarrayData rows (or bound via fieldKey)
headerStyleobjectStyling for the header row
rowStyleobjectStyling for data rows
alternateRowStyleobjectStyling for alternating rows
borderColorstringTable border color
borderWidthnumberTable border width in pixels

Icon Element Properties

PropertyTypeDescription
iconstringIcon name from the icon library
colorstringIcon color
sizenumberIcon size in pixels
strokeWidthnumberStroke width for line-style icons

Line Element Properties

PropertyTypeDescription
strokeColorstringLine color
strokeWidthnumberLine thickness in pixels
strokeStylestringsolid, dashed, dotted

Style Properties

For detailed styling reference (backgrounds, borders, shadows), see Style Properties Reference.

Next Steps