Beta Feature
Let us know so we can improve!
tile/text
Shows text content with optional typography styling. Configure the appearance by using variant, weight, color, italic, and strikethrough settings.
| Name | Required | Lightning Type | Default | Description |
|---|---|---|---|---|
| color | No | lightning__textType | default | A semantic color for the text, which defaults to the surface’s standard text color. |
| isItalic | No | lightning__booleanType | false | Specifies whether the text is rendered in an italic style. |
| isStrikethrough | No | lightning__booleanType | false | Specifies whether the text is rendered with a strikethrough. |
| text | Yes | lightning__multilineTextType | Plain text in a paragraph by default. Any inline markup or formatting syntax are removed. | |
| variant | No | lightning__textType | body | The semantic typography level to determine the heading level or text role. The default is body. |
| weight | No | lightning__textType | The font weight for the text. Omit this setting to use the variant’s default weight. |
Use tile/text for plain, styled text content or a simple string without markup.
For rich formatted content with markup, lists, or links, use tile/markdown instead.
Note
1{
2 "definition": "tile/text",
3 "attributes": {
4 "text": "Your order has shipped."
5 }
6}To specify a semantic role, use the variant attribute to specify a value for body text, code, or a heading level. You can also specify the font weight using the weight attribute.
1{
2 "definition": "tile/text",
3 "attributes": {
4 "text": "Account balance",
5 "variant": "h2",
6 "weight": "semibold"
7 }
8}Use these variant values to express hierarchy or role. Styling on variants can vary across surfaces.
body (default): Standard paragraph textcaption: Small supplementary textcode: Text that represents code, technical identifiers, or commandsh1: The main heading on a pageh2: The second headingh3: The third headingh4: The fourth headingh5: The fifth headingh6: The sixth headingConsider these guidelines when working with text.
color for semantic states like error, success, or muted instead of embedding presentational styling in the string.isItalic for emphasis and isStrikethrough for content that’s superseded or deleted.Note any limitations that apply to this component.
No known limitations for tile/text in Slackbot.
No known limitations for tile/text in ChatGPT.
No known limitations for tile/text in Agentforce.
Beta Feature