---
title: "Callout"
description: "Highlight notes, tips and warnings, built on the shadcn/ui alert."
url: https://docscn.dev/docs/components/callout
lastModified: 2026-10-09T09:13:37.000Z
---

# Callout (/docs/components/callout)

> Highlight notes, tips and warnings, built on the shadcn/ui alert.

## Installation [#installation]

```npm
npx shadcn@latest add @docscn/callout
```

## Usage [#usage]

```mdx
<Callout title="Note">The default type is info.</Callout>

<Callout type="warn" title="Warning">
  Be careful with this.
</Callout>
```

<Callout title="Note">The default type is info.</Callout>

<Callout type="warn" title="Warning">
  Be careful with this.
</Callout>

<Callout type="error" title="Error">
  Something went wrong.
</Callout>

<Callout type="success" title="Success">
  It worked.
</Callout>

<Callout type="idea" title="Idea">
  Try this.
</Callout>

## Props [#props]

<TypeTable
  type={{
    type: {
      description: (
        <>
          Sets the colour and icon. <code>{"warn"}</code> and{" "}
          <code>{"warning"}</code> are the same.
        </>
      ),
      type: '"info" | "warn" | "warning" | "error" | "success" | "idea"',
      default: '"info"',
    },
    title: {
      description: <>An optional title.</>,
      type: "ReactNode",
    },
    icon: {
      description: <>Replace the type's icon.</>,
      type: "ReactNode",
    },
  }}
/>

`Callout` is built on shadcn/ui `alert`. `CalloutContainer`, `CalloutTitle` and `CalloutDescription` are exported to compose your own.

## Admonitions [#admonitions]

Fumadocs' opt-in admonition plugins render with `Callout` too: `remark-admonition` turns blocks such as `:::warn` into a `Callout`, and `remark-directive-admonition` turns `:::note` directives into `CalloutContainer`, `CalloutTitle` and `CalloutDescription`. Their `note`, `tip`, `warning`, `danger` and `success` types map onto the types above.