Links

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
Color
Color of the text that appears on the label
Color
Font Weight
Make the label's text bold
True/False
Font Style
Make the label's text italicized
True/False
Underline
Underline the label's text
True/False
Strikethrough
Apply strikethrough formatting to the label's text. You can further select the strikethrough's color and style.
True/False
Text Align
Set alignment of the text relative to the Label's outline
Select from menu
Font Size
Size of the text that appears on the label
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
Writing Direction
(iOS and web only)
Writing direction of your Label's text
Select from list [left-to-right, right-to-left]
Letter Spacing
(iOS and web only)
Spacing between letters of your Label
Number

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
Resize Mode
Stretch the label to fit the device screen or render it the same as the design, regardless of the device (float in place).
Select from menu (Stretch, Float in Place)

Style

Property
Description
Data Type
Visible
Toggle whether your end users can see the Label
True/False
Background Color
Color of your Label's background
Color
Border Style
Style of Label's Border
Select from list [solid, dotted, dashed]
Border Color
Color of the Label's Border
Color
Border Width
Width of border outline in pixels
Number
Border Radius
Radius of corners of Label
Number
Shadow Color
Color of Label's shadow
Color
Shadow Opacity
Opacity of Label's shadow
Number between 0 and 100
Shadow Radius
Radius of corners of Label's shadow in pixels
Number
Shadow Offset
How far the Label's shadow is offset, in Height and Width, in pixels
Number

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