Displays a short message to attract user’s attention.
The Callout component is made up of three parts: Root, Icon, and Text. View source
Groups Icon and Text parts.
This component is based on the div
element and supports common margin props m
, mx
, my
, ml
, mr
, mt
, mb
.
Provides width and height for the icon associated with the callout. This component is based on the div
element.
Use the color
prop to control the color of the callout. The color and underlines of the links in callout text are adjusted automatically.
Add a native WAI-ARIA alert
role to the callout when the user’s immediate attention is required, like when an error message appears. The screen reader will be interrupted, announcing the new content immediately.