kemiljk

Callout

Component

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>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    9
  • Color Picker

    Color Picker

    6
  • Combobox

    Combobox

    1
  • Resizable

    Resizable

    1
  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

  • Textarea

    Textarea

  • Number Field

    Number Field