About
An accessible alert box that announces status, success, warning or danger messages to screen readers via ARIA live-region roles.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Callout to your project and fits it to your theme.
Code
How Callout is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Callout } from "@/components/ui/callout";
export default function CalloutDemo() {
return (
<div className="flex w-full max-w-md flex-col gap-4">
<Callout variant="info" title="Heads up">
This is announced politely (role="status"), it won't interrupt anything
in progress.
</Callout>
<Callout variant="danger" title="Something went wrong">
This is announced immediately (role="alert").
</Callout>
</div>
);
}








