"use client";
import { ContentIndexPage } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly ContentCardLinkItem[] | — | Items to render. |
title (required) | ReactNode | — | Title (any content). |
countLabel | ReactNode | — | Badge after the section title, e.g. the number of items. |
sectionTitle | ReactNode | — | — |
announceResults | boolean | true | Announce the number of items politely when it changes (filtering, search), debounced; never on page load (default true). Turn it off when your filter already announces its results. |
description | ReactNode | — | Supporting text. |
emptyState | ReactNode | — | — |
filter | ReactNode | — | — |
formatResultsCount | (count: number) => string | "{count} results" / "No results" | Text of the announced count (default "{count} results" / "No results"). |
headingAs | "h1" | "h2" | "h3" | h1 | Title element: h1 (default) for the page; h2/h3 for a preview inside another page. |
sectionActions | ReactNode | — | — |
itemsrequiredreadonly ContentCardLinkItem[]
Items to render.
titlerequiredReactNode
Title (any content).
countLabelReactNode
Badge after the section title, e.g. the number of items.
sectionTitleReactNode
announceResultsdefault trueboolean
Announce the number of items politely when it changes (filtering, search), debounced; never on page load (default true). Turn it off when your filter already announces its results.
descriptionReactNode
Supporting text.
emptyStateReactNode
filterReactNode
formatResultsCountdefault "{count} results" / "No results"(count: number) => string
Text of the announced count (default "{count} results" / "No results").
headingAsdefault h1"h1" | "h2" | "h3"
Title element: h1 (default) for the page; h2/h3 for a preview inside another page.
sectionActionsReactNode
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
CSV tools for TypeScript.
Terminal chart renderer.
const projects = [
{ href: "/work/csvkit-ts", title: "csvkit-ts", description: "CSV toolkit." },
{ href: "/work/run-chart", title: "run-chart", description: "Charts in the terminal." },
];
<ContentIndexPage title="Work" sectionTitle="Projects" countLabel="2" items={projects} />