Callout
Left-border accent callout block in five variants: info, warning, success, danger, and neutral.
Preview
Heads up
Deprecated
color prop is deprecated — use variant instead.Deployed
Destructive action
Note
Usage
import { Callout } from "anexui";
<Callout variant="info" title="Did you know?">
You can pass any React node as children, including inline code and links.
</Callout>
Copy codeWithout title
The title prop is optional — omit it for a body-only callout.
<Callout variant="warning">
Remember to back up your data before proceeding.
</Callout>
Copy codeCustom icon
Override the default variant icon with any React node.
import { Callout } from "anexui";
<Callout variant="info" icon={<RocketIcon />} title="Coming soon">
This feature is under active development.
</Callout>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "info" \| "warning" \| "success" \| "danger" \| "neutral" | "info" | Color and icon preset |
| title | string | — | Optional bold heading above the body |
| icon | ReactNode | — | Override the default variant icon |
| className | string | — | Extra class names on the root element |
| children | ReactNode | — | Callout body content |
Variant values
| Value | Use case |
|---|---|
| info | Neutral informational notes |
| warning | Deprecation notices or caveats |
| success | Confirmation of a completed action |
| danger | Destructive or irreversible action warnings |
| neutral | General-purpose annotation |