Skip to content
Back to skills

Callout

ASecurity

Inline alert/notification banner with icon and variant colors. Also exports pre-configured variants: SuccessCallout, ErrorCallout, WarningCallout, InfoCallout.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-aitypescriptreactnode

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill callout --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Callout?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Callout
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-callout/badge)](https://www.skillsdirectory.com/skills/reaviz-callout)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Callout

Inline alert/notification banner with icon and variant colors. Also exports pre-configured variants: SuccessCallout, ErrorCallout, WarningCallout, InfoCallout.

## Import

```tsx
import { Callout, SuccessCallout, ErrorCallout, WarningCallout, InfoCallout } from 'reablocks';
```

## Callout Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `text` | `string \| ReactNode` | — | Callout message content |
| `icon` | `ReactNode` | — | Icon element |
| `variant` | `'default' \| 'success' \| 'error' \| 'warning' \| 'info'` | `'default'` | Color variant |
| `theme` | `CalloutTheme` | — | Per-instance theme override |

## Basic Usage

```tsx
<Callout text="This is an informational message" variant="info" icon={<InfoIcon />} />
<Callout text="Operation completed" variant="success" icon={<CheckIcon />} />
<Callout text="Something went wrong" variant="error" icon={<ErrorIcon />} />
<Callout text="Please be careful" variant="warning" icon={<WarningIcon />} />
```

## Pre-configured Variants

```tsx
<SuccessCallout text="Saved successfully" />
<ErrorCallout text="Failed to save" />
<WarningCallout text="Unsaved changes" />
<InfoCallout text="New version available" />
```

## CalloutTheme Interface

```typescript
interface CalloutTheme {
  base: {
    common: string;   // Shared base styles (padding, border-bottom)
    variant: {         // Per-variant background and border colors
      default: string;
      success: string;
      error: string;
      warning: string;
      info: string;
    };
  };
  icon: {
    common: string;    // Shared icon styles
    variant: {         // Per-variant icon colors
      default: string;
      success: string;
      error: string;
      warning: string;
      info: string;
    };
  };
  text: string;        // Text styles
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.