Command Palette

Search for a command to run...

Components · Core component

Callout

Callouts are used to highlight important information, alerts, or system statuses.

Usage

TSX
import { Callout } from '@console/nimbus-ui/core';

Examples

Semantic Intents

Use the intent prop to communicate the semantic meaning of the callout. Available intents are neutral, info, success, warning, danger, and special. Changing the intent automatically updates the background, border, text, and default icon.

Variants

Use the variant prop to change the structural appearance of the callout. The enclosed variant (default) features a full bounding border and a thick accent strip. The subtle variant removes the border, relying solely on background color and spacing for grouping.

Custom Icons

While <Callout.Icon /> automatically renders a semantic icon based on the intent, you can override it by passing a custom SVG or component as a child. You are able to also provide a custom color directly to the icon if required. You can also omit <Callout.Icon> entirely if you need to use a larger, custom-sized brand icon.

Brand Icons

Instead of using <Custom.Icon> it's better to use brand icons directly. This will prevent fills from being applied incorrectly.

Callout Buttons

Callouts provide a dedicated <Callout.Button> component to ensure strict visual consistency and accessibility. Using <Callout.Button> automatically applies the semantic colors of the active intent and leverages TypeScript to restrict the allowed variants to primary, outline, and ghost. Standard global <Button> components placed inside a Callout will remain completely unaffected.

API

Callout

PropTypeDefaultDescription
classNamestring—
data-rac-idstring—
data-testidstring—
intentenum—
variantenum—

Callout.Icon

PropTypeDefaultDescription
classNamestring—

Callout.Content

PropTypeDefaultDescription
classNamestring—

Callout.Title

PropTypeDefaultDescription
classNamestring—

Callout.Description

PropTypeDefaultDescription
classNamestring—

Callout.Button

PropTypeDefaultDescription
variantenumprimaryOnly allows specific visual variants that are compliant with Callout intents.