Text
import { Text } from 'cx/widgets'; Copied The Text component renders dynamic text content with data binding support. Use it when you need to display text values from the store.
<LabelsLeftLayout>
<TextField value={m.name} label="Name:" placeholder="Enter your name" />
<Text value={m.name} />
</LabelsLeftLayout> Configuration
| Property | Type | Description |
|---|---|---|
value | string | Text value to display. Supports data binding. |
bind | string | Store path containing the text value. Equivalent to value={bind("path")}. |
tpl | string | Template string. Equivalent to value={tpl("template")}. |
expr | string | Expression string. Equivalent to value={expr("expression")}. |