API and Development
Callout highlights important messages, notifications, and alerts that need attention or provide helpful context. It presents critical information with clear visual hierarchy using semantic colors, icons, and optional actions.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Primary localized message displayed in the callout. |
|
| — | ARIA label override for the callout container. |
|
| — | Configuration for an optional call-to-action button rendered in the callout. |
|
| — | Optional body copy beneath the title.
Description is for **informational text only**: localized strings, |
|
|
| When true, shows a dismiss (X) button that hides the callout. |
|
|
| When true, replaces the variant icon with a loading spinner. |
|
|
| Layout variant controlling the placement of icon, title, actions, content, and description. |
|
| — | Callback fired when the callout is dismissed. |
|
| — | ARIA role override. Defaults to a role derived from the callout type. |
|
| — | Configuration for an optional secondary icon button rendered next to the CTA. |
|
|
| Semantic variant controlling the color, icon, and ARIA role. |
Interactive examples and edge cases for this component are in Storybook.
Use for general information, tips, or neutral notifications.
Use for information that doesn’t indicate a warning, success, or failure state.
Confirms a successful action or positive outcome.
Requires attention, but isn’t an error.
Indicates a failure or problem that likely requires the user to take action.
Callouts can include one or more CTAs.
Allow users to hide temporary or low‑priority messages.
Pass title as a LocalizedMessage from formatMessage or formatInternalMessage. For descriptions, prefer a localized string, CoreText, or a text-only FlexBox composition. Reserve Typography for semantic ul/ol/li content. The ReactNode type supports legacy rich-text surfaces; new code should treat description as text-only. Use ctaButton and secondaryIconButton for actions; use Card for forms and multi-control layouts.
CalloutType is the color authority for all title and description text, including nested CoreText, Typography, and list markers. Consumer color overrides inside a callout are unsupported.