Text

Common properties for Text component, with extended text-specific styles.

组件展示

Heading1
Heading2
Heading3
Heading4
Heading5
Body
Caption

属性

属性名
类型
必需性
描述
id*
string
必需
The unique identifier for a component, used for both definitions and references within the same surface.
accessibility
object
可选
Attributes to enhance accessibility when using assistive technologies like screen readers.
styles
object
可选
暂无描述
weight
number
可选
The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.
component*
"Text"
必需
暂无描述
text*
string | DataBinding | object
必需
Represents a string
variant
"h1" | "h2" | "h3" | "h4" | "h5" | "caption" | "body"
可选
A hint for the base text style.
可选值: h1, h2, h3, h4, h5, caption, body

代码示例

{
  "component": "Text",
  "id": "text_1",
  "text": "示例text"
}