Skip to documentation
Design system / Sources & standards
Current repository source
overviewCards.tsx
src/components/editions/overviewCards.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 { cn } from "@/lib/utils";
/** Edition-owned slot template. Working content follows outside this pair. */
export function OverviewCards({ info, link, navigation }: { info: ReactNode; link: ReactNode; navigation?: ReactNode }) {
return <div data-slot="overview-cards" className={cn("grid w-full min-w-0 items-start gap-4", navigation ? "grid-cols-[auto_minmax(0,1fr)] md:grid-cols-[auto_minmax(0,1fr)_minmax(0,1fr)]" : "grid-cols-1 md:grid-cols-2")}>
{navigation}
<div className={cn("min-w-0", navigation && "col-start-2")}>{info}</div>
<div className={cn("min-w-0", navigation && "col-span-full md:col-span-1 md:col-start-3")}>{link}</div>
</div>;
}
All sources and standards