Callout

Use Markdown alerts or the Callout component to draw attention to a message.

Usage

Use GitHub-style alerts in Markdown or MDX:

> [!WARNING]
> Review your changes before applying them.

Supported markers are [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], and [!CAUTION]. Place the marker on its own first line.

In MDX, use Callout for a custom title, icon, color, or action:

<Callout title="Good to know">
  Keep normal docs pages as Markdown. Use MDX when you need components.
</Callout>

Set a custom Lucide icon with icon when the message benefits from one:

<Callout icon="sparkles" color="violet" title="Custom icon">
  Use a Tailwind color family and a Lucide icon name.
</Callout>

Options

PropTypeDefaultNotes
type"warning" | "important" | "destructive"undefinedOptional severity variant.
colorstringundefinedTailwind color family, such as blue or purple. Uses shade 700 in light mode and 400 in dark mode. Overrides type color.
titlestring"Note"Heading displayed in the alert.
iconstringundefinedOptional Lucide icon name or custom SVG.
action{ label: string; href: string }undefinedOptional callout action link.
classstring""Extra classes applied to the alert root.

Examples

Neutral

Neutral

Use a callout when the surrounding paragraph is not enough.

Custom icon

Custom icon

Add a Lucide icon when it helps explain the message.

Action

Template macros available

This component ships an optional action link for related documentation.

Warning

Warning

Avoid putting app-only imports in reusable documentation examples.

Destructive

Destructive

This variant is for irreversible actions, security risks, or migration warnings.

Markdown alerts

Note

Use alerts for information readers should notice.

Tip

Keep the message short and actionable.

Important

Complete the required setup before continuing.

Warning

Review your changes before applying them.

Caution

Deleting data cannot be undone.