Anex UI logoAnex UI
npm install anexui
Documentation

Documentation

Callout

Left-border accent callout block in five variants: info, warning, success, danger, and neutral.

Preview

Heads up

This feature is in beta. Expect breaking changes in future releases.

Deprecated

The color prop is deprecated — use variant instead.

Deployed

Your changes have been published to production successfully.

Destructive action

Deleting this record cannot be undone. Proceed with caution.

Note

Components follow the WAI-ARIA Authoring Practices Guide.

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 code

Without 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 code

Custom 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>
Copy code

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 |