<cs-callout>
StableFeedbackSince 0.1

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.

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.

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.

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.

Without an Icon

Icons are optional. Omit the icon slot for a text-only callout.

All times are shown in your local timezone.

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.

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.

npm Self-Hosted React
import '@cruglobal/cornerstone-components/components/callout/callout.js';
import './cornerstone/components/callout/callout.js';
import CsCallout from '@cruglobal/cornerstone-components/react/callout/index.js';

Slots

Learn more about using slots.

NameDescription
(default)The callout's main content.
iconAn icon to show in the callout. Works best with <cs-icon>.

Attributes & Properties

Learn more about attributes and properties.

PropertyAttributeDescriptionTypeDefaultReflects
appearanceappearanceThe callout's visual appearance.'accent' | 'filled' | 'outlined' | 'plain' | 'filled-outlined'Yes
sizesizeThe callout's size.'xs' | 's' | 'm' | 'l' | 'xl''m'Yes
variantvariantThe callout's theme variant. Defaults to brand if not within another element with a variant.'brand' | 'neutral' | 'highlight' | 'information' | 'success' | 'warning' | 'danger''brand'Yes

CSS Parts

Learn more about CSS parts.

NameDescriptionCSS selector
iconThe container that wraps the optional icon.::part(icon)
messageThe container that wraps the callout's main content.::part(message)