Callout
A highlighted message component for important information, warnings, or tips.View source →This component's API and documentation are under review and may change. Use with caution in production.
Callout draws attention to important information with a visually distinct container. Use it for tips, warnings, errors, and other messages that need to stand out from regular content.
This is an enhanced version of the Callout from Radix Themes.
Playground
Installation
shellUsage
tsxAnatomy
The Callout component is composed of three parts:
Callout.Root- The container that holds the icon and textCallout.Icon- Optional icon slot for visual emphasisCallout.Text- The message content
Props
Callout.Root
Variants
Soft
The default variant with a subtle tinted background.
tsxSurface
Elevated appearance with a light background.
tsxOutline
Bordered with transparent background.
tsxClassic
A refined, subtle appearance.
tsxSemantic Colors
Use colors to convey meaning.
tsxSizes
Control callout size with the size prop.
tsxWithout Icon
The icon is optional. Use text-only callouts for simpler messages.
tsxAccessibility
Callouts use ARIA live regions by default (aria-live="polite"). For urgent messages, use live="assertive". For decorative callouts, use live="off".
tsx