Components · Content
Callout
A highlighted note. tone: neutral, info, success, warning, or danger. announce speaks it to screen readers when it appears after a reader's action.
ExamplesLink to this section
Heads up
The API moves to v2 next week.
All 1,284 checks passed.
Deploy freeze
Deploys pause during the migration window.
This drops the legacy table. Back it up first.
Neutral is the default tone.
Show JSONHide JSON
{
"version": 1,
"root": "page",
"elements": {
"page": {
"type": "Stack",
"props": { "gap": "sm" },
"children": ["info", "success", "warning", "danger", "neutral"]
},
"info": {
"type": "Callout",
"props": {
"tone": "info",
"title": "Heads up",
"text": "The API moves to v2 next week."
}
},
"success": {
"type": "Callout",
"props": { "tone": "success", "text": "All 1,284 checks passed." }
},
"warning": {
"type": "Callout",
"props": {
"tone": "warning",
"title": "Deploy freeze",
"text": "Deploys pause during the migration window."
}
},
"danger": {
"type": "Callout",
"props": {
"tone": "danger",
"text": "This drops the legacy table. Back it up first."
}
},
"neutral": {
"type": "Callout",
"props": { "text": "Neutral is the default tone." }
}
}
}PropsLink to this section
Generated from the zod schema the server validates with. Unknown props are ignored with a warning. Any prop can also be a dynamic value such as { "$state": "/path" }; it is checked again once it resolves.
| Prop | Type | Limits and defaults |
|---|---|---|
| textrequired | string | max 2,000 chars |
| title | string | max 160 chars |
| tone | "neutral" | "info" | "success" | "warning" | "danger" | — |
| announce | boolean | — |
RulesLink to this section
announcespeaks the title and text to screen readers when the Callout appears after a reader's action. A Callout that is there from the start is not spoken. Mark one element for each action: when two appear together, only the last is spoken.
Children and eventsLink to this section
Callout is a leaf: it does not show children. Validation warns when a leaf has some; wrap them in a Stack or Card instead.
It emits no events.