TLTextShapeProps
See source codeConfiguration interface defining properties for text shapes in tldraw. Text shapes support rich formatting, styling, and automatic sizing.
interface TLTextShapeProps {}Example
const textProps: TLTextShapeProps = {
color: 'black',
size: 'm',
font: 'draw',
textAlign: 'start',
w: 200,
richText: toRichText('Hello **bold** text'),
scale: 1,
autoSize: true,
}Properties
autoSize
autoSize: booleancolor
color: TLDefaultColorStylefont
font: TLDefaultFontStylerichText
richText: TLRichTextscale
scale: numbersize
size: TLDefaultSizeStyletextAlign
textAlign: TLDefaultTextAlignStylew
w: numberPrev
TLStorePropsNext
TLVideoShapeProps