Skip to documentation
Design system / Sources & standards
Current repository source
empty-state-card.tsx
src/components/ui/empty-state-card.tsx
This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.
import type { ReactNode } from "react";
import { Card, CardContent, CardDescription, CardHeader } from "./card";
type EmptyStateCardProps = {
icon: ReactNode;
title: string;
children: ReactNode;
};
export function EmptyStateCard({ icon, title, children }: EmptyStateCardProps) {
return (
<Card className="border-dashed bg-muted/20">
<CardContent className="flex flex-col items-center gap-4 p-12 text-center">
<div className="flex size-10 items-center justify-center rounded-md bg-muted text-muted-foreground">
{icon}
</div>
<CardHeader className="w-full max-w-3xl gap-2 px-0">
<h2 className="text-title font-semibold">{title}</h2>
<CardDescription className="max-w-none text-supporting">{children}</CardDescription>
</CardHeader>
</CardContent>
</Card>
);
}
All sources and standards