Callout
Highlight notes, tips and warnings.
Installation
Usage
Note
The default type is info.
Warning
Be careful with this.
Error
Something went wrong.
Success
It worked.
Idea
Try this.
Props
| Prop | Type | Description |
|---|---|---|
type | "info" | "warn" | "warning" | "error" | "success" | "idea" | Defaults to "info". |
title | ReactNode | An optional title. |
icon | ReactNode | Replace the type's icon. |
Callout is built on shadcn/ui alert. CalloutContainer, CalloutTitle and CalloutDescription are exported to compose your own.