Skip to documentation
Design system / Sources & standards
Current repository source
documentation-molecule-catalog.tsx
src/components/editorial/instances/documentation-molecule-catalog.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 { ContentCards } from "../content-cards";
import { Badge } from "@/components/ui/badge";
import { Text } from "@/components/ui/text";
/** Documentation-owned collection adapter. Actual interactive feature previews
* stay on detail pages, avoiding duplicated controls/IDs across 27 live forms. */
export function DocumentationMoleculeCatalog({
entries,
}: {
entries: readonly {
id: string;
name: string;
intent: string;
category: string;
owner: string;
}[];
}) {
return (
<ContentCards
level={2}
items={entries.map((entry) => ({
id: entry.id,
title: entry.name,
description: entry.intent,
href: `/design-system/molecules/${entry.id}`,
preview: <Badge variant="outline">{entry.category}</Badge>,
meta: (
<Text variant="eyebrow" className="text-text-muted">
{entry.owner}
</Text>
),
}))}
/>
);
}
All sources and standards