About
A rounded content card with header, body, footer and media subcomponents for grouping related information in a panel or grid.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Mors Card to your project and fits it to your theme.
Code
How Mors Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Card, CardHeader, CardBody } from "@/components/ui/mors-card";
export default function CardDemo() {
return (
<div
className="mors-scope flex min-h-screen w-full items-center justify-center p-10"
style={{
background: "var(--mors-color-canvas)",
color: "var(--mors-color-text)",
}}
>
<div className="grid w-full max-w-4xl gap-6 sm:grid-cols-3">
<Card elevation="flat">
<CardHeader title="Flat" subtitle="Sunken tint, no shadow" />
<CardBody>For grouping inside an already elevated surface.</CardBody>
</Card>
<Card elevation="raised">
<CardHeader title="Raised" subtitle="The default" />
<CardBody>A hairline border plus a soft shadow.</CardBody>
</Card>
<Card elevation="floating">
<CardHeader title="Floating" subtitle="Lifted panel" />
<CardBody>For content that sits above the page.</CardBody>
</Card>
</div>
</div>
);
}
















