Component
Card
A flexible content container with header, body, and footer slots
Card
A card component for grouping related content with header, body, and footer sections.
Installation
bash
liminal add card
Usage
tsx
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
CardFooter,
} from "@/components/ui/card";
import { Button } from "@/components/ui/button";
export default function Example() {
return (
<Card>
<CardHeader>
<CardTitle>Card title</CardTitle>
<CardDescription>
This is a short description of the card content.
</CardDescription>
</CardHeader>
<CardContent>
<p>Here goes the main content of your card.</p>
</CardContent>
<CardFooter>
<Button>Action</Button>
</CardFooter>
</Card>
);
}