Beta Feature
Let us know so we can improve!
tile/callout
Highlights a content block for emphasis. The callout wraps child content with a semantic variant, optional title, and description.
| Name | Required | Lightning Type | Default | Description |
|---|---|---|---|---|
| description | No | lightning__textType | The body text below the title. | |
| iconAlt | No | lightning__textType | Alternative text describing what the leading variant icon conveys. When omitted or empty, the icon is treated as decorative and hidden from assistive technologies. | |
| title | Yes | lightning__textType | The heading text for the callout block. | |
| variant | No | lightning__textType | default | Changes the appearance of the callout. Valid values include default for neutral, error for a critical issue, info for context, note for an aside, success for a positive outcome, tip for a suggestion, or warning for caution. |
Use a callout to draw attention to a piece of information that stands apart from the surrounding content, such as a tip, a warning, or a confirmation. It renders a titled block with a colored border, background tint, and icon set by its variant.
A callout is a container, so it can wrap richer body content as child blocks. For a plain run of body text with no emphasis, use tile/text instead.
Note
To create a callout, set a short title and choose a variant that matches the message. Use description for a single line of supporting body text.
1{
2 "definition": "tile/callout",
3 "attributes": {
4 "title": "Did you know?",
5 "description": "This feature is available in all plans.",
6 "variant": "info"
7 }
8}To flag something that’s critical, use the warning or error variant.
1{
2 "definition": "tile/callout",
3 "attributes": {
4 "title": "Important Notice",
5 "description": "This action cannot be undone.",
6 "variant": "warning"
7 }
8}For richer body content, omit description and provide child blocks instead. The children render below the title inside the callout.
1{
2 "definition": "tile/callout",
3 "attributes": {
4 "title": "Additional Information",
5 "variant": "note"
6 },
7 "children": [
8 {
9 "definition": "tile/text",
10 "attributes": { "text": "Review the steps below before continuing." }
11 }
12 ]
13}Use variant to set the callout’s semantic category, which determines its color, background tint, and icon. On text-only surfaces, the variant is conveyed with a label prefix such as “Warning:” instead of color.
default: The default neutral styling with no specific status.error: A critical failure or blocking issue, which shows something that went wrong and needs attention.info: Supplementary context or background, which adds helpful detail that isn’t urgent.note: A general aside or clarification, which shows a remark that sits alongside the main content.success: A positive outcome or confirmation, which confirms that an action completed.tip: A helpful suggestion or best practice, which provides a recommendation for something.warning: A potential issue or caution, which notifies the user before they take a risky action.Consider these guidelines when working with callouts.
variant that matches the message’s tone as the variant carries the meaning even when color isn’t available.description for a single line of body text, and switch to child blocks when the content needs structure such as a list or code.Note any limitations that apply to this component.
No known limitations for tile/callout in Slackbot.
No known limitations for tile/callout in ChatGPT.
No known limitations for tile/callout in Agentforce.
Beta Feature