Drag and Drop
Label
The label component allows you to display text in your app.

Properties

You can customize your label using the following properties:

Label

Property
Description
Data Type
Text
Text that appears on the label
Text
Font
Font used to display Label's text
Select from menu
Custom Font (mobile only)*
Font used to display Label's text
OTF or TTF file
Font Size
Size of the text that appears on the label
Number
Color
Color of the text that appears on the label
Color
Background Color
Sets the background color of the label
Color
Text Align
Set alignment of the text relative to the Label's outline
Select from menu
Font Style
Set whether font should be bolded or italicized
Select from menu
Font Weight
Set thickness of font
Number
Number Of Lines
Maximum amount of lines of text that your Label will display
Number
Uploading a custom font is available on Thunkable's Business and Enterprise plans. Read more about our pricing plans here.โ€‹

Advanced Properties

Property
Description
Data Type
Letter Spacing (iOS and web only)
Spacing between letters of your Label
Number
Text Decoration Line
Set whether your text contains line-through, underline
Select from list [line-through, underline, underline line-through]
Text Decoration Style (iOS and web only)
Style of Text Decoration line
Select from list [solid, dotted, dashed, double]
Text Decoration Color (iOS and web only)
Color of your Text Decoration Line
Color
Writing Direction (iOS and web only)
Writing direction of your Label's text
Select from list [left-to-right, right-to-left]

Layout

Property
Description
Data Type
X
Location of your Label on the X-axis in pixels
Number
Y
Location of your Label on the Y-axis in pixels
Number
Height
Height of your Label in pixels
Number
Width
Width of your Label in pixels
Number
Visible
Toggle whether your end users can see the Label
True/False

Style

Property
Description
Data Type
Background Color
Color of your Label's background
Color
Border Width
Width of border outline in pixels
Number
Border Radius
Radius of corners of Label
Number
Border Color
Color of the Label's Border
Color
Border Style
Style of Label's Border
Select from list [solid, dotted, dashed]

Blocks

Events

Click

This event will fire when the user clicks on the label.

Properties

Background Color

The get and set background color properties work with the color of the label itself i.e. the region behind the label text. Best practice is to use one of the color blocks to set this value but HEX or RGB values may be used too.

Color

The get and set color properties can be used to work with the color of the text that is displayed in the label. Best practice is to use one of the color blocks to set this value but HEX or RGB values may be used too.

Font Size

The get and set font size blocks are used to work with the size of the text that is displayed in the label. This value must be a number.

Font Style

The font style property can be either "Normal" or "Italic".

Font Weight

The font weight value can be either; "Normal", "Bold" or a a value from 100 to 900

Height

The set and get height blocks work with the Height property of the label component. Acceptable input values are.
  • Number of Pixels
  • Percentage Height
  • "Fit Contents"
  • "Fill Container"
The Computed Height block returns the on-screen dimensions of the label, after it has been rendered on-screen. The value returned is an integer, representing the size of the label in pixels.

Number of Lines

The get and set number of lines property is used to work with the maximum number of lines of text that should be displayed in a label before that label starts to scroll.

Text

This property corresponds to the text that is displayed in the label component.

Text Align

Text Align can be any of the following values:
  • Auto
  • Left
  • Right
  • Center
  • Justify

Visible

The set and get visible blocks are used to show or hide the entire image component. Acceptable values are:
  • True
  • False

Width

The set and get width blocks work with the Width property of the label component. Acceptable values are.โ€Œ
  • Number of Pixels
  • Percentage Width
  • "Fit Contents"
  • "Fill Container"
The Computed Width block returns the on-screen dimensions of the label, after it has been rendered on-screen. The value returned is an integer, representing the size of the label in pixels.
โ€‹
Last modified 4mo ago