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
  • Video Tutorial
  • How to Change Thunkable Screens with a Button Click
  • Properties
  • Button
  • Layout
  • Style
  • Navigation
  • Button Blocks

Was this helpful?

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

Button Component

PreviousBasic ComponentsNextLabel Component

Last updated 1 month ago

Was this helpful?

Overview

The button component gives your user familiar ways to start actions in your app. Examples include navigating between app screens, submitting user inputs, and triggering a device’s camera to take a photo.

In the block combination below, when a user clicks Button1 they will be taken to, or navigate to, Screen2.

Video Tutorial

How to Change Thunkable Screens with a Button Click

In this tutorial, you’ll learn how to use the “navigate to” block to allow your app’s users to navigate between app screens with a simple button click.

Properties

Button

Property
Value
Description

Text

Text

Text displayed on the button.

Font

Select from font menu

Font for the button's text.

Custom Font (mobile only)*

Upload TTF or OTF file

Font for the button's text.

Text Color

Color

Color for the button's text.

Font Bold

True/False

True = button's text is bold. False = button's text is not bold.

Font Italic

True/False

True = button's text is italic. False = button's text is not italic.

Raised**

True/False

True = button has a shadow. False = button does not have a shadow.

Font Size

Number

Font size of the button's text.

Disabled

True/False

True = button is disabled for the user by default. False = button is enabled for the user by default.

** Raised is no longer supported. Please use Shadows under Style instead.

Layout

Property
Value
Description

X

coordinate value

Position of the upper left corner of the button 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 button on the Y-axis, where the top of the screen is Y=0.

Height

number in pixels

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

Width

number in pixels

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

Resize Mode

Stretch

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

Resize Mode

Float in Place

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

Style

Property
Value
Description

Visible

visible

Users can see the button.

Visible

invisible

Users cannot see the button.

Background Color

color

The background color of the button.

Border: Style

solid

The button's border is a solid line.

Border: Style

dotted

The button's border is a dotted line.

Border: Style

dashed

The button's border is a dashed line.

Border: Color

color

The button's border is the color selected.

Border: Width

number in pixels

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

Border: Radius

number in pixels

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

Shadow: Color

color

The button's shadow is the color selected.

Shadow: Opacity

number between 0 and 100

The opacity of the button's shadow.

Shadow: Radius

number in pixels

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

Shadow: Offset

number in pixels

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

Navigation

Property
Value
Description

Navigate to screen

none

When users click on the button there is no navigation to another screen.

Navigate to screen

screen name

When users click on the button they navigate to the selected screen.

Button Blocks

To access the blocks specific to the button component:

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

  2. Navigate to the Blocks tab.

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

  4. A drawer of button-specific blocks opens.

Block Image
Description

This event fires when a user taps (or clicks) the button.

This event fires when a user presses and holds the button for an extended period of time.

This event fires when a user initially touches the button. It is the moment when the user's finger (or stylus) makes contact with the touchscreen.

This event fires when a user lifts their finger (or stylus) off the screen or releases the press on the button. It represents the moment when the user's interaction with the button ends.

Set the text that is displayed on the button.

Get the text that is displayed on the button.

Set the color of the text that is displayed on the button.

Get the color of the text that is displayed on the button.

Set the font size of the text that is displayed on the button.

Get the font size of the text that is displayed on the button.

Set the custom font of the text that is displayed on the button.

Get the custom font of the text that is displayed on the button.

Set the button's background color by connecting a color, or a text with a color in RGBA "rgba(93, 122, 252, 100)" or Hex "#5D7AFC".

Get the button's background color. By default, it returns the color in RGBA. If you set it using the set color block with Hex, it returns Hex.

Set the button's background picture. Click the dropdown menu to select an image from your computer.

Get the button's background picture.

Set the button's background picture resize mode.

Get the button's background picture resize mode.

Set the button's height in pixels.

Get the button's height in pixels.

Gets the button's computed height, the on-screen dimensions of the button, after it has been rendered on-screen. The value returned is an integer, representing the button's height in pixels.

Set the button's width in pixels.

Get the button's width in pixels.

Gets the button's computed width, the on-screen dimensions of the button, after it has been rendered on-screen. The value returned is an integer, representing the button's width in pixels.

When set to true, the button is visible to users.

When set to false, the button is invisible to users.

Gets the button's visibility status. Returns true (visible) or false (invisible).

Set the position of the upper left corner of the button on the X-axis, where the left side of the screen is X=0.

Get the position of the upper left corner of the button on the X-axis, where the left side of the screen is X=0.

Set the position of the upper left corner of the button on the Y-axis, where the top of the screen is Y=0.

Get the position of the upper left corner of the button on the Y-axis, where the top of the screen is Y=0.

Set the font of the text displayed on the button to bold.

Get the color of the text that is displayed on the button. tbd

Set the font of the text displayed on the button to italics.

Get whether the font of the text displayed on the button is italics.

Set the font of the text displayed on the button to raised.

Get whether the font of the text displayed on the button is raised.

When set to true, the button is disabled or inactive for users.

When set to false, the button is not disabled, it is active for users.

Get the button's disabled status.

* Uploading a custom font may only be available for Creators on certain Thunkable plans. Please refer to our for more information.

Have feedback on this doc? Please take a moment to share your feedback here: . Your valuable insights will help us improve and better serve you in the future.

🎨
pricing page
Thunkable Docs Feedback
Navigate to a different screen