PlainTextLabel
See source codeTable of contents
Renders a text label that can be used inside of shapes. The component has the ability to be edited in place and furthermore supports rich text editing.
Properties
align
bounds
optional
bounds?: BoxclassNamePrefix
optional
classNamePrefix?: stringfill
optional
fill?: TLDefaultFillStylefont
font: TLDefaultFontStylefontSize
fontSize: numberisSelected
isSelected: booleanlabelColor
labelColor: stringlineHeight
lineHeight: numberonKeyDown
optional
Parameters
| Name | Description |
|---|---|
| |
Returns
voidpadding
optional
padding?: numbershapeId
shapeId: TLShapeIdstyle
optional
style?: React.CSSPropertiestext
optional
text?: stringtextHeight
optional
textHeight?: numbertextWidth
optional
textWidth?: numbertype
type: stringverticalAlign
verticalAlign: TLDefaultVerticalAlignStylewrap
optional
wrap?: booleanPrev
PlainTextAreaNext
PreferencesGroup