Thunkable Docs
Build an AppDrag and Drop DocsSnap to Place DocsAcademy
Drag and Drop
Drag and Drop
  • What is Thunkable?
  • 🗺️Getting Started
    • Getting Started Guide
    • Keyboard Shortcuts
    • Undo Redo
    • Thunkable Account
      • Account Management
    • Preview and Test your App
    • Versioning
    • Data Sources
      • Google Sheets Data Source
      • Airtable Data Source
      • Webflow Data Source
      • Local Table Data Source
    • Project Collaboration
      • Organizations
    • 🎓Sample Apps & Tutorials
      • Thunkable Community Forums
      • Sample Apps
      • Video Tutorials
        • Thunkable Live App
          • How to Test and Troubleshoot with Thunkable Live App
        • Data Source Tutorials
          • Connecting to Data Sources
            • Google Sheets
            • Local Table
          • Create Data in a Thunkable Data Source
          • Read Data in a Thunkable Data Source
          • Update Data in a Thunkable Data Source
          • Delete Data in a Thunkable Data Source
        • User Auth & Management
          • Firebase
            • User Sign-Up, Sign-In, and Auth
            • User Sign Out and Password Reset
          • Google
            • User Sign-Up, Sign-In, Sign-Out, and Auth
          • Apple
            • User Sign-Up, Sign-In, Sign-Out, and Auth
        • Projects
          • How to Save Versions of Your Thunkable Project
          • How to Copy and Customize Public or Sample Thunkable Projects
        • User Interface & Design
          • Screens
            • Save and Reuse Thunkable Screens
            • Change Thunkable Screens with a Button Click
            • Create Scrollable Screens in Your Thunkable App
          • Navigators
            • How to Use the Thunkable Stack Navigator
            • How to Use Thunkable Top and Bottom Tab Navigators
            • How to Use the Thunkable Drawer Navigator
            • Combine Figma Frames with Thunkable Navigators
          • Components
            • How to Use the Visibility Property to Create Modals in Thunkable
          • Data Visualization
            • Customize a Data Viewer
          • Text
            • Implement Text Input Validation
        • Alerts & Notifications
          • Display Alert Messages in Your Thunkable App
          • How to Create Three-Button Alert Messages
        • Files
          • Cloudinary
            • Store and Access Cloudinary Files in Your Thunkable App
        • Camera
          • How to Use the Device’s Camera
          • How to Use the Device’s Video Camera
          • Use the Device’s Camera as a QR or Barcode Scanner
        • Realtime Databases
          • Firebase
            • How to Read Data in a Firebase Realtime Database
            • How to Update Data in a Firebase Realtime Database
        • Advanced Blocks
          • Connect Your Thunkable App to a Web API
        • Thunkable Academy
          • Building Your First Thunkable App
            • Getting Started with Thunkable
            • How to Design a Thunkable App
            • How to Connect a Thunkable App to a Data Source
            • How to Make A Thunkable App Interactive with Blocks
          • Thunkable No Code App Creation Basics
            • Thunkable UI Components and App Features
            • Understanding Thunkable's Drag and Drop Block Builder
            • Design, Develop, Debug, and Deploy Your App
        • Hour of Code
          • 2021 - Build an Informational App
          • 2022 - Build a Scavenger Hunt App
          • 2023 - Build a Translator and Text-to-Speech App
        • App Building
          • How to Build a Translation App in Thunkable
          • How to Create an Image Recognition App with Thunkable
          • How to Create a Text-to-Speech App in Thunkable
  • 🎨App Design
    • User Interface (UI) Components
      • Basic Components
        • Button Component
        • Label Component
        • Rich Text Component
        • Image Component
        • Text Input Component
        • Layout Component
        • Group Component
      • Data Components
        • Simple List Component
        • Data Viewer Components
          • Data Viewer List Component
          • Data Viewer Grid Component
          • Custom Data Viewer
      • Input Components
        • Switch Component
        • Slider Component
        • Checkbox Component
        • Date Input Component
        • Time Input Component
      • Media Components
        • Animation Component
        • Video Component
        • Loading Icon Component
      • Embed Components
        • Web Viewer Component
        • Map Component
        • Canvas Component
        • PDF Reader Component
        • Rating Component
      • Modules
        • Introduction
        • User Guide
      • Generative AI
    • Screens
      • Save and Reuse Screens
      • Improve Thunkable Load Time
    • Navigators
      • Top Tab Navigator
      • Bottom Tab Navigator
      • Drawer Navigator
      • Stack Navigator
    • Figma Integration
  • 🛠️Blocks
    • Thunkable Blocks Overview
    • Core Blocks
      • Control Blocks
      • Logic Blocks
      • Math Blocks
      • Text Blocks
      • Lists Blocks
      • Color Blocks
      • Device Blocks
      • Objects Blocks
      • Variables Overview
        • Connect a Firebase Realtime Database
        • Variables Blocks
      • Functions Blocks
    • App Features Blocks
      • Speech Blocks
      • Sound Blocks
      • Share Blocks
      • Camera Blocks
      • Files Blocks
      • Sign In Blocks
        • User Sign Up, Sign In, and Authentication with Firebase
        • User Sign Up, Sign In, and Authentication with Google
        • User Sign Up, Sign In, and Authentication with Apple
      • Location Blocks
      • Push Notification Blocks
      • In-App Purchase Blocks (with RevenueCat)
      • Data Sources Blocks
      • Alerts Blocks
      • Timer Blocks
      • Sensors Blocks
        • Gyroscope
        • Magnetometer
        • Accelerometer
        • Location Sensor
      • Ads by AdMob
    • Advanced Blocks
      • Web APIs Blocks
        • CORS Policy
        • 🆓No Auth APIs
          • Update Data in a Data Source
          • CRUD Operations
          • Setting Headers
        • 📊Charting APIs
          • Create a chart template
          • Charting in Thunkable
      • Bluetooth Low Energy Blocks
      • OpenAI Services ChatGPT Integration Blocks
      • "Any Component" Blocks
      • JavaScript Web Bridge
  • ⚙️Settings
    • App Settings
      • Tablet View
    • Assets
    • Cloud Variable Viewer
    • Manage your Projects
      • My Projects Page
      • Thunkable Projects
      • Duplicate Project
      • Share Your App
      • Download Your App
        • Download Your App on iOS
        • Download Your App on Android
      • Add to Home Screen
      • Managing Project Storage
      • App Data Privacy
      • Delete Project
  • 📱Publishing
    • Overview
    • Publish to the Apple App Store
      • User Guide
      • Troubleshooting
      • Review Process
      • Tracking Usage Description
    • Publish to Google Play Store
      • User Guide
      • Troubleshooting
      • Review Process
    • Publish as a Web App
      • User Guide
      • Custom Domains
      • Troubleshooting
    • Testing
      • Testing on iOS via TestFlight
      • Testing on Android
    • Troubleshooting
      • Publishing Checklist
      • Generate Screenshots
  • 🎮Gaming
    • Gaming Overview
      • Canvas Label
      • Sprites
      • Sprite Gallery
    • Gaming Blocks
      • Events
      • Motion
      • Looks
      • Direction
      • Sensing
      • Add & Remove
      • Stage
  • 🗃️Additional Resources
    • Release Notes
      • Release Notes 2024
      • Release Notes 2023
    • Troubleshooting
      • Can't Sign in to Thunkable?
      • FAQs
    • Minimum Requirements
    • Bugs and Product Feedback
    • App Services and Emulators
Powered by GitBook
On this page
  • Overview
  • Properties
  • Label
  • Advanced Properties
  • Layout
  • Style
  • Label Blocks

Was this helpful?

Export as PDF
  1. App Design
  2. User Interface (UI) Components
  3. Basic Components

Label Component

PreviousButton ComponentNextRich Text Component

Last updated 6 months ago

Was this helpful?

Overview

The label component is used to display read-only text and can be made clickable using blocks.

Labels work alongside other user interface components like buttons, images, and text inputs to create a cohesive and intuitive user experience.

Properties

You can customize your label using the following properties:

Label

Property
Value
Description

Text

Text

Text that appears on the label

Font

Select from menu

Font used to display label's text

Custom Font (mobile only)*

OTF or TTF file

Font used to display label's text

Color

Color

Color of the text that appears on the label

Font Weight

True/False

Make the label's text bold

Font Style

True/False

Make the label's text italicized

Underline

True/False

Underline the label's text

Strikethrough

True/False

Apply strikethrough formatting to the label's text. You can further select the strikethrough's color and style.

Text Align

Select from menu

Set alignment of the text relative to the label's outline

Font Size

Number

Size of the text that appears on the label

Number Of Lines

Number

Maximum amount of lines of text that your label will display

Advanced Properties

Property
Value
Description

Writing Direction

(iOS and web only)

Select from list [left-to-right, right-to-left]

Writing direction of your label's text

Letter Spacing

(iOS and web only)

number

Spacing between letters of your label

Layout

Property
Value
Description

X

coordinate value

Position of the upper left corner of the label on the X-axis, where the left side of the screen is X=0.

Y

coordinate value

Position of the upper left corner of the label on the Y-axis, where the top of the screen is Y=0.

Height

number in pixels

The label's height is defined by a custom number of pixels.

Width

number in pixels

The label's width is defined by a custom number of pixels.

Resize Mode

Stretch

Stretches the label's to fit the dimensions of the device's screen.

Resize Mode

Float in Place

Renders the label in the same aspect ratio as the design, regardless of the device size.

Style

Property
Value
Description

Visible

visible

Users can see the label.

Visible

invisible

Users cannot see the label.

Background Color

color

The background color of the label.

Border: Style

solid

The label's border is a solid line.

Border: Style

dotted

The label's border is a dotted line.

Border: Style

dashed

The label's border is a dashed line.

Border: Color

color

The label's border is the color selected.

Border: Width

number in pixels

The width of the label's border is defined by a custom number of pixels.

Border: Radius

number in pixels

The radius of the label border’s corners is defined by a custom number of pixels.

Shadow: Color

color

The label's shadow is the color selected.

Shadow: Opacity

number between 0 and 100

The opacity of the label's shadow.

Shadow: Radius

number in pixels

The radius of the label shadow’s corners is defined by a custom number of pixels.

Shadow: Offset

number in pixels

How far the label's shadow should be offset, in height and width, is defined by a custom number of pixels.

Label Blocks

To access the blocks specific to the label component:

  1. On the Design tab, add a Label component to a screen.

  2. Navigate to the Blocks tab.

  3. In the component tree on the left, click the name of the label component.

  4. A drawer of label-specific blocks opens.

Block Image
Description

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

Get the label's color.

Get the label's background color.

Set the label's font size.

Get the label's font size.

Set's the label's font style. The font style property can be either "Normal" or "Italic".

Get the label's font style.

Set's the label's font weight.The font weight value can be either "Normal", "Bold" or a a value from 100 to 900

Get the label's font weight.

Set's the label's font height. Acceptable input values are: Number of Pixels, Percentage Height, "Fit Contents", or "Fill Container."

Get the label's font height.

The Computed Height block gets 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.

Set the label's number of lines.The 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.

Get the label's number of lines.

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

Get the label's text.

Set the label's Text Align. Text Align can be any of the following values: Auto, Left, Right, Center, or Justify.

Get the label's Text Align.

Set the label's Visibility. The visible blocks are used to show or hide the entire image component. Acceptable values are: true or false.

Get the label's Visibility.

Set the label's width. The width blocks work with the Width property of the label component. Acceptable values are.‌

Get the label's width.

The Computed Width block gets 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.

Custom Fonts may only be available for Creators on certain Thunkable plans.

Set the label's color with the color of the label itself i.e. the region behind the label text. Best practice is to use one of the to set this value but HEX or RGB values may be used too.

Set the label's background color with the color of the label itself i.e. the region behind the label text. Best practice is to use one of the to set this value but HEX or RGB values may be used too.

🎨
Read more about our pricing plans here.
color blocks
color blocks