Skip to content

Callouts

Set a note, tip or warning apart from the text with Note, Info, Tip, Check, Warning, Danger or a custom Callout.

Updated

Use a callout for something the reader shouldn’t miss. Each of the six kinds has its own name and icon.

MDX
<Note>Notes add context.</Note>
<Info>Info points to something related.</Info>
<Tip>Tips save the reader time.</Tip>
<Check>Check confirms that something worked.</Check>
<Warning>Warnings say what can go wrong.</Warning>
<Danger>Danger is for what can't be undone.</Danger>

Callout makes a custom one. Give it an icon and a color:

MDX
<Callout icon="flag" color="#FFC107">A custom callout, with its own icon and color.</Callout>
iconstring

On Callout: a Lucide or Font Awesome icon name, or an image path. Without a title, the icon stands alone.

colorstring

On Callout: the callout’s color, as hex (#FFC107), a color name, or rgb() or hsl(). Anything else is ignored.

titlestring

On Callout: the label above the text. A kind’s own name is the label by default, and title replaces it.

typestring

On Callout: note, info, tip, check, warning or danger makes it that kind. warn and caution mean warning, error means danger, and success means check.

Note, Info, Tip, Check, Warning and Danger take no props. You can still set a title on them.

Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.