"use client";
import { ContentDetailPage } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | ReactNode | — | Title (any content). |
breadcrumbs | readonly BreadcrumbItem[] | — | — |
date | Date | string | — | Publication date, rendered as a muted <time dateTime> line under the title. A string is used as the dateTime value as is ("2026-03-14"); a Date becomes its ISO timestamp. |
dateLabel | ReactNode | — | Visible date text ("14 March 2026"). Without it, date is formatted with the provider locale (dateStyle: "long", UTC, so server and client agree). Pass a label when the date needs a time zone. |
intro | ReactNode | — | — |
relatedLinks | readonly RelatedLinkItem[] | — | — |
tags | readonly ReactNode[] | — | — |
children | ReactNode | — | — |
headingAs | "h1" | "h2" | "h3" | h1 | Title element: h1 (default) for the page; h2/h3 for a preview inside another page. |
relatedTitle | ReactNode | — | — |
titlerequiredReactNode
Title (any content).
breadcrumbsreadonly BreadcrumbItem[]
dateDate | string
Publication date, rendered as a muted <time dateTime> line under the title. A string is used as the dateTime value as is ("2026-03-14"); a Date becomes its ISO timestamp.
dateLabelReactNode
Visible date text ("14 March 2026"). Without it, date is formatted with the provider locale (dateStyle: "long", UTC, so server and client agree). Pass a label when the date needs a time zone.
introReactNode
relatedLinksreadonly RelatedLinkItem[]
tagsreadonly ReactNode[]
childrenReactNode
headingAsdefault h1"h1" | "h2" | "h3"
Title element: h1 (default) for the page; h2/h3 for a preview inside another page.
relatedTitleReactNode
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
A TypeScript port with command-line parity.
Project details.
const breadcrumbs = [
{ href: "/work", label: "Work" },
{ label: "csvkit-ts" },
];
const tags = ["TypeScript", "CSV"];
const intro = "A CSV toolkit for TypeScript.";
const relatedLinks = [{ href: "/work/run-chart", label: "run-chart" }];
<ContentDetailPage title="csvkit-ts" breadcrumbs={breadcrumbs} date="2026-07-14" dateLabel="14 July 2026" tags={tags} intro={intro} relatedLinks={relatedLinks}><DetailSection title="Overview">...</DetailSection></ContentDetailPage>