A surface for grouping content, with three variants, edge-to-edge media, concentric radii and whole-card links.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- cn
- @base-ui/react
- class-variance-authority
Code
import { IconDotsVertical } from "@tabler/icons-react"
import { Button } from "@/components/ui/button"
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"
export function CardDemo() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>Team plan</CardTitle>
<CardDescription>
Billed monthly. Renews on October 28, 2026.
</CardDescription>
<CardAction>
<Button variant="ghost" size="icon-sm" aria-label="More options">
<IconDotsVertical />
</Button>
</CardAction>
</CardHeader>
<CardContent>
<p>
12 of 20 seats used. Invite teammates or remove inactive members to
free up seats.
</p>
</CardContent>
<CardFooter>
<Button>Manage seats</Button>
<Button variant="outline">View invoices</Button>
</CardFooter>
</Card>
)
}
































