Card
Renders a card component comprising a header, content section, and footer...
Subscribe
Get the latest updates in your inbox.
Installation
npx scrollx-ui@latest add card
Usage
import { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from "@/components/ui/card";
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>This is a description of the card.</CardDescription>
</CardHeader>
<CardContent>
<p>Some content for the card goes here.</p>
</CardContent>
<CardFooter>
<Button variant="primary">Action</Button>
</CardFooter>
</Card>
<Card className="custom-card-style">
<CardHeader>
<CardTitle>Custom Card</CardTitle>
<CardDescription>This card has a custom style.</CardDescription>
</CardHeader>
<CardContent>
<p>Additional content with custom styles.</p>
</CardContent>
<CardFooter>
<Button variant="link">Learn More</Button>
</CardFooter>
</Card>
API Reference
Card
The Card
component is used to create a customizable container with content sections such as title, description, and footer.