āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/nolly-studio/cult-ui/components/minimal-card ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<ComponentPreview name="minimal-card-demo" className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]" description="All variations" />
npx shadcn@latest add https://cult-ui.com/r/minimal-card.json
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="minimal-card" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </CodeTabs>import {
MinimalCard,
MinimalCardDescription,
MinimalCardImage,
MinimalCardTitle,
} from "@/components/ui/minimal-card"
const cards = [
{
title: "Sick title",
description:
"How to design with gestures and motion that feel intuitive and natural.",
},
{
title: "Sick title",
description:
"How to design with gestures and motion that feel intuitive and natural.",
},
{
title: "Sick title",
description:
"How to design with gestures and motion that feel intuitive and natural.",
},
{
title: "Sick title",
description:
"How to design with gestures and motion that feel intuitive and natural.",
},
{
title: "Sick title",
description:
"How to design with gestures and motion that feel intuitive and natural.",
},
]
export default function MinimalCardDemo() {
return (
<div className="w-full max-w-4xl">
<div className="p-2">
<h3 className="text-xl font-semibold">MinimalCard</h3>
</div>
<div className="min-h-[500px] p-4 flex flex-col justify-center border border-dashed rounded-lg space-y-4">
<div className="relative grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
{cards.map((card) => (
<MinimalCard>
<MinimalCardImage src="/basic-img.png" />
<MinimalCardTitle>{card.title}</MinimalCardTitle>
<MinimalCardDescription>
{card.description}
</MinimalCardDescription>
</MinimalCard>
))}
</div>
</div>
</div>
)
}
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā