Skip to content

format

typescript
Text.bestFit

class: Text

description

Whether the text adapts its size.

If set to true, it means the text will automatically scale to fit the size of the Text component. If set to false, it means the text will be displayed at its original size.

parameter

param_nametypedescription

reture

typedescription
booleanWhether the text adapts its size

code example