Overview
Text component allows users to add and format text within the applications. It can be used for various purposes, including headings, labels, instructions, or any other textual content.
In this article you will learn about how to configure text components..
Define Content
Text: This field expects the actual text content to be displayed. You can use Data Pills as well to show Dynamic Content.
Type: This field defines the format of the text like plain text, HTML, or other markup languages.
Refer
Data Pills can be used to dynamically populate the text content from various data sources. For more information on data mapping, refer to the Data Pills article.
Style Text Component
The appearance of the Text component can be customized to fit the design requirements of your application. The following properties are available for styling:
Property | Description |
| Select the text style, such as body, heading, subtitle, etc. |
| Set the alignment of the text (left, center, right, justify) |
| Choose the font weight (regular, bold, light, etc.) |
| Define the color of the text. This can be set to any color from the palette or custom colors |
| Set the padding around the text. |
| Define the width of the text box. |
| Set the minimum width. |
| Set the maximum width. |
Best Practices
Consistent Styling: Maintain a consistent style throughout your application for a professional look.
Accessibility: Ensure the text is readable and accessible to all users by using appropriate font sizes and colors.
Dynamic Content: Use Data Pills to keep your text content dynamic and up-to-date with real-time data.