Callouts display important messages inline with surrounding content. Use them to highlight tips, warnings,
errors, or other information users should not miss.
This is a standard callout. You can customize its content and even the icon.
<cs-callout><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
This is a standard callout. You can customize its content and even the icon.
</cs-callout>
Examples
Variant
Set the variant attribute to match the callout to its message.
A new theme is available
Try it from Settings whenever you're ready.
Your changes have been saved
You can safely close this tab now.
Your settings have been updated
Changes take effect on your next login.
Your session is about to expire
Save your work to avoid losing it.
This action can't be undone
Deleting a project removes it for everyone on the team.
<divclass="cs-stack"><cs-calloutvariant="brand"><cs-iconslot="icon"name="info"variant="fill"></cs-icon><strong>A new theme is available</strong><br/>
Try it from Settings whenever you're ready.
</cs-callout><cs-calloutvariant="success"><cs-iconslot="icon"name="check_circle"variant="fill"></cs-icon><strong>Your changes have been saved</strong><br/>
You can safely close this tab now.
</cs-callout><cs-calloutvariant="neutral"><cs-iconslot="icon"name="settings"></cs-icon><strong>Your settings have been updated</strong><br/>
Changes take effect on your next login.
</cs-callout><cs-calloutvariant="warning"><cs-iconslot="icon"name="warning"variant="fill"></cs-icon><strong>Your session is about to expire</strong><br/>
Save your work to avoid losing it.
</cs-callout><cs-calloutvariant="danger"><cs-iconslot="icon"name="error"variant="fill"></cs-icon><strong>This action can't be undone</strong><br/>
Deleting a project removes it for everyone on the team.
</cs-callout></div>
Appearance
Use the appearance attribute to change the callout’s visual style. With no appearance set, a callout renders with a quiet fill and border, matching filled-outlined.
This accent callout draws the most attention.
This callout is both filled and outlined.
This callout is only filled.
Here's an outlined callout.
No fill or border on this plain callout.
<divclass="cs-stack"><cs-calloutvariant="brand"appearance="accent"><cs-iconslot="icon"name="check_box"variant="fill"></cs-icon>
This <strong>accent</strong> callout draws the most attention.
</cs-callout><cs-calloutvariant="brand"appearance="filled-outlined"><cs-iconslot="icon"name="format_color_fill"></cs-icon>
This callout is both <strong>filled</strong> and <strong>outlined</strong>.
</cs-callout><cs-calloutvariant="brand"appearance="filled"><cs-iconslot="icon"name="format_paint"></cs-icon>
This callout is only <strong>filled</strong>.
</cs-callout><cs-calloutvariant="brand"appearance="outlined"><cs-iconslot="icon"name="line_style"></cs-icon>
Here's an <strong>outlined</strong> callout.
</cs-callout><cs-calloutvariant="brand"appearance="plain"><cs-iconslot="icon"name="text_fields"></cs-icon>
No fill or border on this <strong>plain</strong> callout.
</cs-callout></div>
Size
Use the size attribute to change a callout’s size.
Extra-small callout for minimal emphasis.
Small callout for a bit of emphasis.
Medium callout, the default size.
Large callout for more emphasis.
Extra-large callout for maximum emphasis.
<divclass="cs-stack"><cs-calloutsize="xs"><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
Extra-small callout for minimal emphasis.
</cs-callout><cs-calloutsize="s"><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
Small callout for a bit of emphasis.
</cs-callout><cs-calloutsize="m"><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
Medium callout, the default size.
</cs-callout><cs-calloutsize="l"><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
Large callout for more emphasis.
</cs-callout><cs-calloutsize="xl"><cs-iconslot="icon"name="info"variant="fill"></cs-icon>
Extra-large callout for maximum emphasis.
</cs-callout></div>
Without an Icon
Icons are optional. Omit the icon slot for a text-only callout.
All times are shown in your local timezone.
<cs-calloutvariant="brand">All times are shown in your local timezone.</cs-callout>
Customizing
Style a callout with regular CSS — background, border, border-radius, color, padding, and margin all work as expected.
A pinch of CSS goes a long way.
<cs-calloutvariant="brand"style="
background: var(--cs-color-brand-fill-quiet);
border-radius: var(--cs-border-radius-pill);
border-style: dashed;
"><cs-iconslot="icon"name="wand_stars"></cs-icon>
A pinch of CSS goes a long way.
</cs-callout>
API
Importing
If you're using the autoloader or a hosted project, components load on demand — no manual import
needed. To cherry-pick this component, use one of the following snippets.