Rich Text Component
Last updated
Last updated
The Rich Text component is used to compose and display formatted text, and can also be made clickable using blocks.
Rich Text works alongside other user interface components like buttons, images, and text inputs to create a cohesive and intuitive user experience.
You can customize your Rich Text component using the following properties:
Text
Text
Text that appears on the Rich Text Component
Font
Select from menu
Font used to display component's text
Font Size
Number
Size of the text
Font Weight
True/False
Make the text bold
Color
Color
Color of the text that appears on the component
Highlight Color
Color
The color in which to highlight the text
Strikethrough
True/False
Draw a line through the select text
Underline
True/False
Underline the selected text
Italic
True/False
Make the selected text italicized
Text Align
Select from menu
Set alignment of the text relative to the outline
Line Spacing
Number
Maximum amount of lines of text that will display
Visible
True/False
Display or hide the component
Using Custom Fonts may only be available for Creators on certain Thunkable plans. Please refer to our pricing page for more information: Thunkable pricing.
X
coordinate value
Position of the upper left corner of the Rich Text component 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 Rich Text component on the Y-axis, where the top of the screen is Y=0.
Height
number in pixels
The Rich Text component's height is defined by a custom number of pixels.
Width
number in pixels
The Rich Text component's width is defined by a custom number of pixels.
Resize Mode
Stretch
Stretches the Rich Text component to fit the dimensions of the device's screen.
Resize Mode
Float in Place
Renders the Rich Text component in the same aspect ratio as the design, regardless of the device size.
Visible
visible
Users can see the Rich Text.
Visible
invisible
Users cannot see the Rich Text.
Background Color
color
The background color of the Rich Text.
Border: Style
solid
The Rich Text component's border is a solid line.
Border: Style
dotted
The Rich Text component's border is a dotted line.
Border: Style
dashed
The Rich Text component's border is a dashed line.
Border: Color
color
The Rich Text component's border is the color selected.
Border: Width
number in pixels
The width of the Rich Text component's border is defined by a custom number of pixels.
Border: Radius
number in pixels
The radius of the Rich Text component's border’s corners is defined by a custom number of pixels.
Shadow: Color
color
The Rich Text component's shadow is the color selected.
Shadow: Opacity
number between 0 and 100
The opacity of the Rich Text component's shadow.
Shadow: Radius
number in pixels
The radius of the Rich Text component's shadow’s corners is defined by a custom number of pixels.
Shadow: Offset
number in pixels
How far the Rich Text component's shadow should be offset, in height and width, is defined by a custom number of pixels.
To access the blocks specific to the Rich Text component:
On the Design tab, add a Rich Text component to a screen.
Navigate to the Blocks tab.
In the component tree on the left, click the name of the Rich Text component.
A drawer of Rich-Text-specific blocks opens.
This event will fire when the user clicks on the Rich Text.
Removes all text from the component.
Reset all text formatting (including paragraph modifiers) to the default styling (i.e., the styling that a brand new Rich Text component has before it is modified).
Replace any text with the provided string. This will set it to the “default component styling” (no modifiers).
Get the component's text.
Set the background color of the component.
Get the background color.
Set the height of the component.
Get the height of the component.
The Computed Height
block gets the on-screen dimensions of the component, after it has been rendered on-screen. The value returned is an integer, representing the size of the Rich Text component in pixels.
Set the width of the component.
Get the width of the component.
The Computed Width
block gets the on-screen dimensions of the Rich Text component, after it has been rendered on-screen. The value returned is an integer, representing the size of the Rich Text component in pixels.
Choose whether to display or hide the component.
Get the True or False value for the Visible state.
Set the position of the component on the X-Axis, where the left side of the screen is X=0.
Get the position of the component on the X-Axis.
Set the position of the component on the Y-Axis, where the top of the screen is Y=0.
Get the position of the component on the Y-Axis.
Set the font of the component's text.
Set the font size of the component's text.
Make all the text Bold or Normal.
Set all the text to Italic.
Underline all the text.
Draw a line through all the text.
Highlight all the text in a specific color.
Set the line spacing.
Set all the text to a specific color.
Set the component's Text Align. Text Align can be any of the following values: Auto, Left, Right, Center, or Justify.