Text
Text with any Google font — multi-line with wrapping, alignment and line height — rendered crisp via a glyph texture
Props
Prop
Details
textstringDefault:
Hello WorldThe text to display (single line)
textstringDefault: Hello WorldThe text to display (single line)
fontFamilystringDefault:
InterGoogle Fonts family name
fontFamilystringDefault: InterGoogle Fonts family name
fontWeightnumberDefault:
400Font weight (only weights published for the family render true; others are synthesized)
fontWeightnumberDefault: 400Font weight (only weights published for the family render true; others are synthesized)
italicbooleanDefault:
falseItalic style
italicbooleanDefault: falseItalic style
textTransform"none" | "uppercase" | "lowercase" | "capitalize"Default:
noneCase transformation applied to the text
textTransform"none" | "uppercase" | "lowercase" | "capitalize"Default: noneCase transformation applied to the text
fontSizenumberDefault:
0.07Font size as a fraction of canvas height
fontSizenumberDefault: 0.07Font size as a fraction of canvas height
letterSpacingnumberDefault:
0Letter spacing in em units
letterSpacingnumberDefault: 0Letter spacing in em units
lineHeightnumberDefault:
1.2Line height as a multiple of font size (multi-line text)
lineHeightnumberDefault: 1.2Line height as a multiple of font size (multi-line text)
textAlign"left" | "center" | "right"Default:
centerHorizontal alignment of lines within the text block
textAlign"left" | "center" | "right"Default: centerHorizontal alignment of lines within the text block
widthnumberDefault:
0Wrap width — text wraps to fit; 0 = auto (hug contents, single line per explicit break). Edited via the Typography panel's Auto/Fixed width toggle and the side drag handles, not a slider.
widthnumberDefault: 0Wrap width — text wraps to fit; 0 = auto (hug contents, single line per explicit break). Edited via the Typography panel's Auto/Fixed width toggle and the side drag handles, not a slider.
colorstringDefault:
#ffffffText color
colorstringDefault: #ffffffText color
originstringDefault:
centerReference edge the center position is measured from (center default). Lets you pin the text relative to a corner or the canvas centre.
originstringDefault: centerReference edge the center position is measured from (center default). Lets you pin the text relative to a corner or the canvas centre.
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the text
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the text
rotationnumberDefault:
0Rotation in degrees
rotationnumberDefault: 0Rotation in degrees