mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
25 lines
370 B
Plaintext
25 lines
370 B
Plaintext
# Text
|
|
|
|
用于显示文本的部件。
|
|
|
|
<WidgetExample name="text-basic" />
|
|
|
|
## 适用场景
|
|
|
|
- **适用** — 静态文本显示(标题、标签、说明文字)。
|
|
- **不适用** — 需要用户编辑文本(用 `textinput`)。
|
|
|
|
## 用法
|
|
|
|
```tsx
|
|
import { Text } from "@lcui/react"
|
|
```
|
|
|
|
```tsx
|
|
<Text>Hello</Text>
|
|
```
|
|
|
|
## API 参考
|
|
|
|
<FieldTable name="text" />
|