Skip to content
Back to skills

Card

ASecurity

Content container with optional header section. Renders as a `<section>` with border, background, rounded corners, and padding.

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

Security analysis

A100/100

Scanned May 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Card?

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

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

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
# Card

Content container with optional header section. Renders as a `<section>` with border, background, rounded corners, and padding.

## Import

```tsx
import { Card } from 'reablocks';
```

## Card Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `header` | `string \| JSX.Element \| JSX.Element[]` | — | Header content (string renders as `<h3>`) |
| `disablePadding` | `boolean` | — | Remove padding |
| `className` | `string` | — | Card container CSS classes |
| `headerClassName` | `string` | — | Header CSS classes |
| `contentClassName` | `string` | — | Content area CSS classes |
| `style` | `CSSProperties` | — | Inline styles |
| `theme` | `CardTheme` | — | Per-instance theme override |

Also accepts DOM event attributes. Uses `forwardRef`.

## Basic Usage

```tsx
<Card>Card content here</Card>
```

## With Header

```tsx
<Card header="Settings">
  <p>Card body content</p>
</Card>
```

## With Custom Header

```tsx
<Card header={<div className="flex justify-between"><h3>Title</h3><Button>Action</Button></div>}>
  Content
</Card>
```

## No Padding

```tsx
<Card disablePadding>
  <List>...</List>
</Card>
```

## CardTheme Interface

```typescript
interface CardTheme {
  base: string;           // Container (flex-col, padding, rounded, bg, border)
  disablePadding: string; // No padding override
  header: string;         // Header container (flex, items-center)
  headerText: string;     // Header text (font, margin)
  content: string;        // Content area (flex-1)
}
```

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.