Card
Group a heading, description, content and footer inside one bordered surface. Leave out the parts you don’t need.
Card preview
Type specimen
JetBrains Mono
Aa Bb Cc
Install from GitHub
pnpm dlx [email protected] add biehlio/yet-another-design-system/card#e7b31d0e0c9d8b24d53e97ca38b3b68d345e9f40Documentation samples use basic Tailwind utilities for layout. Install each YADS component imported by the sample.
Use in React
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "@/components/ui/yads-card";
export default function Example() {
return (
<Card>
<CardHeader>
<CardTitle>Type specimen</CardTitle>
<CardDescription>JetBrains Mono</CardDescription>
</CardHeader>
<CardContent>Aa Bb Cc</CardContent>
<CardFooter>Weight 500</CardFooter>
</Card>
);
}