Docscn

Callout

Highlight notes, tips and warnings.

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

PropTypeDescription
type"info" | "warn" | "warning" | "error" | "success" | "idea"Defaults to "info".
titleReactNodeAn optional title.
iconReactNodeReplace the type's icon.

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