Intro
You can use the text component to display a given text.
When to Use
Do
Use the text component if you want to display text inside a form, table, or other content area.
Don't
Don’t use the text component if you want to label another component (such as an input field). Use the label instead.
Behavior and Interaction
Wrapping and Truncation
A text can wrap, truncate, or combine wrapping and truncation. In the combined variant, you define a maximum number of lines. The text wraps until the last line is reached and truncates at the end of the last line.
Text wraps
Text truncates
Combined wrapping and truncation with 2 lines
Wrapping with Hyphenation
Text wraps with hyphenation
Preserve White Space
Text with and without preserved white space
Empty Indicator Mode
You can display an n-dash (“–”) to denote an empty text. This can make information easier for users to scan, such as empty values in forms.
Depending on the user’s language, the symbol may vary.
Empty text indicator in a form
Related Links
Components
Implementation
- Text
(UI5 Web Components documentation)
Specifications
- Text (visual design)
- Text (interaction design)
- Theming – Typography (Horizon) (visual design)
Components
Implementation
- Text
(UI5 Web Components documentation)