Card

Displays a card with header, content, and footer.

shadcn/ui docs →

Preview

Create project
Deploy your new project in one click.

Installation

terminal
$
Other package managers
bunx --bun shadcn@latest add https://trents.tech/r/card.json

Usage

example.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import { Button } from "@/components/ui/button"

<Card className="w-full max-w-sm">
  <CardHeader>
    <CardTitle>Create project</CardTitle>
    <CardDescription>Deploy your new project in one click.</CardDescription>
  </CardHeader>
  <CardContent>
    <p>Card content goes here.</p>
  </CardContent>
  <CardFooter>
    <Button>Deploy</Button>
  </CardFooter>
</Card>
0