Card 4

PreviousNext

Card component

Docs
cardcncomponent

Preview

Loading preview…
components/cards/card-4.tsx
import {
	Card,
	CardContent,
	CardHeader,
	CardTitle,
} from "@/components/ui/card";

const Placeholder = {
	title: <div className="bg-secondary h-8 max-w-40 w-full rounded-md" />,
	content: <div className="bg-secondary h-20 w-full rounded-md" />,
};

export const Card_4 = () => {
	return (
		<Card className="shadow-[0px_5px_0px_0px_var(--border)]">
			<CardHeader>
				<CardTitle>{Placeholder.title}</CardTitle>
			</CardHeader>
			<CardContent>{Placeholder.content}</CardContent>
		</Card>
	);
};

Installation

npx shadcn@latest add @cardcn/card-4

Usage

import { Card4 } from "@/components/card-4"
<Card4 />