Text Element

PropTypeRequiredExampleValue RangeDescription
contentstringtrue--The text content displayed by the element.
textStyleobjecttrue--The styling options for the text content, including font, color, shadow, and stroke settings.
bgColorstringfalse--The background color of the text element, in hex format.
bgAlphanumberfalse-0 - 1The transparency level of the text background. 1 represents full opacity, and 0 represents full transparency.
bgRadiusnumberfalse--The corner radius of the text background, in pixels.

Text Style

PropTypeRequiredExampleValue RangeDescription
fillstringtrue--The text color, in hex format.
fontSizenumbertrue-> 0The font size of the text, in pixels.
fontFamilystringtrue--The font family used for the text.
alignstringtrue--The alignment of the text content.
lineHeightnumbertrue->= 0The line height of the text content, in pixels.
letterSpacingnumbertrue--The spacing between characters in the text content, in pixels.
isBoldbooleantrue--Indicates whether the text content is displayed in bold.
isItalicbooleantrue--Indicates whether the text content is displayed in italics.
shadowEnabledbooleantrue--Indicates whether a shadow effect is applied to the text content.
shadowColorstringtrue--The color of the shadow effect, in hex format.
shadowBlurnumbertrue->= 0The blur radius of the shadow effect, in pixels.
shadowAlphanumbertrue-0 - 1The transparency level of the shadow effect. 1 represents full opacity, and 0 represents full transparency.
shadowAnglenumbertrue->= 0The angle of the shadow effect, in radians.
shadowDistancenumbertrue->= 0The distance between the text content and the shadow effect, in pixels.
strokestringtrue--The color of the stroke effect, in hex format.
strokeWidthnumbertrue->= 0The width of the stroke effect, in pixels.
textElement.json
1{ 2 "id": "556e5b07-9f6d-49fa-804a-a1ac523cdd82", 3 "type": "Text", 4 "start": 0, 5 "duration": 5, 6 "trackIndex": 0, 7 "x": 166.1738354439909, 8 "y": -59.92190375317854, 9 "blendMode": "normal", 10 "anchorX": 0, 11 "anchorY": 0, 12 "rotation": 0, 13 "scaleX": 2.8948529361581095, 14 "scaleY": 2.8948529361581095, 15 "alpha": 1, 16 "skewX": 0, 17 "skewY": 0, 18 "keyframes": [], 19 "content": "Add Heading", 20 "textStyle": { 21 "fill": "#FFFFFF", 22 "fontSize": 36, 23 "fontFamily": "Arial", 24 "align": "center", 25 "lineHeight": 0, 26 "letterSpacing": 0, 27 "isBold": true, 28 "isItalic": false, 29 "shadowEnabled": true, 30 "shadowColor": "#000000", 31 "shadowBlur": 4, 32 "shadowAlpha": 1, 33 "shadowAngle": 0.5235987755982988, 34 "shadowDistance": 6, 35 "stroke": "#000000", 36 "strokeWidth": 3 37 }, 38 "bgColor": "#f2c9ff", 39 "bgAlpha": 0, 40 "bgRadius": 10 41} 42