Skip to Content
docscn

Callout

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

Installation

npx shadcn@latest add @docscn/callout

Usage

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

<Callout type="warn" title="Warning">
  Be careful with this.
</Callout>
Note
The default type is info.
Warning

Be careful with this.

Error

Something went wrong.

Success

It worked.

Idea

Try this.

Props

Prop

Type

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

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.