Skip to main content

Import

Usage

Types

With custom icon

Without icon

Outline variant

High contrast

With action

Dismissible

Custom width

Complex content

API reference

Callout

'grey' | 'success' | 'alert' | 'gradient' | 'accent' | 'attention' | 'normal'
default:"'grey'"
The visual style variant of the callout.
boolean
When true, displays the callout with an outline style instead of filled background.
boolean
When true, increases the contrast for better visibility.
React.ReactNode
Custom icon to display. Defaults to InfoCircledIcon. Pass null to hide the icon.
React.ReactNode
Optional action element (like a button or link) to display on the right side.
boolean
When true, shows a dismiss button that allows users to close the callout.
() => void
Callback function called when the dismiss button is clicked. Required when dismissible is true.
string | number
Custom width for the callout. Can be a number (px) or string (e.g., “50%”, “400px”).
string
Additional CSS class names to apply to the callout.
CSSProperties
Inline styles to apply to the callout container.
React.ReactNode
required
The content to display inside the callout.