Ballmac UI home

Card

A composable content surface with compact spacing, an action slot, and optional interactive feedback.

Monthly overview
Activity across your workspace
12,840
+12.8%from last month

Installation

$ pnpm dlx shadcn@latest add @ballmac/card

Usage

import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from "@/components/ballmac/card"

The full example is in the Code tab above.

Examples

States and variants

Active projects
Across all teams
24
Tasks due
In the next seven days
8

API reference

PropTypeDefault
size

Compact spacing for dense dashboards.

"default" | "sm""default"
interactive

Add a hover and focus treatment when the card contains a link or control.

booleanfalse

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tabreaches controls and links inside the card

Use with AI

A composable content surface with compact spacing, an action slot, and optional interactive feedback. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Card (@ballmac/card) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Group a related set of content and actions
  • Present a dashboard metric or settings panel

Not for

  • Use an alert for status messages

Registry JSON: https://ui.ballmac.com/r/card.json

Credits

Based on shadcn/ui Card, adapted by Ballmac. Free to use in personal and commercial projects.

npm
None
Registry
shadcn/utils