Skip to documentation
Design system / Sources & standards
Current repository source
documentation-directory.tsx
src/components/editorial/instances/documentation-directory.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 { LinkDirectory } from "../link-directory";
/** Instance binds the documentation URL convention and decorative numbering. */
export function DocumentationDirectory({
sections,
}: {
sections: readonly { id: string; title: string; description: string }[];
}) {
return (
<LinkDirectory
aria-label="Explore the design system"
items={sections.map((section, i) => ({
...section,
href:
section.id === "overview"
? "/design-system"
: `/design-system/${section.id}`,
index: String(i + 1).padStart(2, "0"),
}))}
/>
);
}
All sources and standards