harmony 鸿蒙Introduction to Text

  • 2025-06-12
  • 浏览 (6)

Introduction to Text

Text plays a vital role in the UI, encompassing both the information entered by users and the textual content or symbols displayed to them. The text elements collaborate to bridge the interaction between users and the system, enhancing ease of operation and providing clear information presentation.

For page development, select from the text components below based on your specific requirements.

Component Use Case
Text: Text, Span Used to display static text. Use the Text component for straightforward text display, or combine it with Span for more complex text layouts. Alternatively, craft text using StyledString or MutableStyledString and integrate it into the Text component.
Text input: TextInput, TextArea Facilitates user text input. Choose TextInput for single-line input and TextArea for multi-line input.
Rich text: RichEditor Designed for rich text editing, including the insertion of images and custom icons.
Symbols: SymbolGlyph, SymbolSpan Used to display small symbolic representations.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)

harmony 鸿蒙Arc Button (ArcButton)

harmony 鸿蒙Animation Smoothing

harmony 鸿蒙Animation Overview

harmony 鸿蒙Frame Animation (ohos.animator)

harmony 鸿蒙Implementing Property Animation

harmony 鸿蒙Property Animation Overview

harmony 鸿蒙Dialog Box Overview

harmony 鸿蒙Blur Effect

0  赞