TLNoteShapeProps
See source codeTable of contents
Properties for a note shape. Note shapes represent sticky notes or text annotations with rich formatting capabilities and various styling options.
interface TLNoteShapeProps {}Example
const noteProps: TLNoteShapeProps = {
color: 'yellow',
labelColor: 'black',
size: 'm',
font: 'draw',
fontSizeAdjustment: 0,
align: 'middle',
verticalAlign: 'middle',
growY: 0,
url: '',
richText: toRichText('Hello **world**!'),
scale: 1,
}Properties
align
Horizontal alignment of text within the note
color
Background color style of the note
color: TLDefaultColorStylefont
Font family style for the note text
font: TLDefaultFontStylefontSizeAdjustment
Adjustment to the base font size (positive increases, negative decreases)
fontSizeAdjustment: numbergrowY
Additional height growth for the note beyond its base size
growY: numberlabelColor
Text color style for the note content
labelColor: TLDefaultColorStylerichText
Rich text content with formatting like bold, italic, etc.
richText: TLRichTextscale
Scale factor applied to the note shape for display
scale: numbersize
Size style determining the font size and note dimensions
size: TLDefaultSizeStyleurl
Optional URL associated with the note for linking
url: stringverticalAlign
Vertical alignment of text within the note
verticalAlign: TLDefaultVerticalAlignStylePrev
TLLineShapePropsNext
TLPage