Components, Feedback
Callout
An info or warning block that sits inside the flow of content.
default: info and success use a neutral surface
This agent only uses read access to connected tools.
Notion is connected.
default: color surfaces for these three only
You've used 80% of your free usageYour usage refills on May 1.
Connection failedThe token expired. Sign in again.
1 item needs your attentionThe coordinator requested a change to room management.
The callout is an info or warning block inside the flow of content. Info and success sit on a neutral surface. Color surfaces are kept for warnings, errors and needs attention.
When to use
| tone | Appearance |
|---|---|
info, success |
muted surface + 1px border. Only the icon is colored, with info-text and success-text |
warn, danger, attention |
Soft color surface with a border and an icon in the same color |
- The body text is
foregroundin every tone. - A color surface appears only when the person has to do something.
- A permission banner is a Callout
warn. An error box is a StatePanelerroror a Calloutdanger. Don’t paintwarning-softordestructive-softdirectly.
What you provide
title(optional): the point in one line (weight 600).- Body: one or two sentences.
action(optional): an action at the right end. Usually a BaseButtonlink.- When the content has just appeared, set
live="polite"orlive="assertive".
Markup
<div class="Callout_callout Callout_warn" data-as="div" data-tone="warn">
<span class="Callout_icon"><svg width="14" height="14">…</svg></span>
<span class="Callout_body"><span class="Callout_title">You've used 80% of your free usage</span>Your usage refills on May 1.</span>
<span class="Callout_action">…</span>
</div>
Don’t
- Don’t paint the body text in the raw color of the tone.
- Don’t place a callout on an
accentsurface. - Don’t turn it into a card with a color band on the left.