Callout

tile/callout

Highlights a content block for emphasis. The callout wraps child content with a semantic variant, optional title, and description.

Properties 

NameRequiredLightning TypeDefaultDescription
descriptionNolightning__textTypeThe body text below the title.
iconAltNolightning__textTypeAlternative text describing what the leading variant icon conveys. When omitted or empty, the icon is treated as decorative and hidden from assistive technologies.
titleYeslightning__textTypeThe heading text for the callout block.
variantNolightning__textTypedefaultChanges 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.

Usage 

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}

Variants 

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.

Design Guidelines 

Consider these guidelines when working with callouts.

  • Choose a variant that matches the message’s tone as the variant carries the meaning even when color isn’t available.
  • Use description for a single line of body text, and switch to child blocks when the content needs structure such as a list or code.
  • Reserve callouts for information that genuinely needs to stand out.

Limitations 

Note any limitations that apply to this component.

Slackbot 

No known limitations for tile/callout in Slackbot.

ChatGPT 

No known limitations for tile/callout in ChatGPT.

Agentforce 

No known limitations for tile/callout in Agentforce.

See Also 

Beta Feature

Headless Experience Layer is a pilot or beta service that is subject to the Beta Services Terms at Ageements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!