import { ProjectCard } from "@pixxl-tools/components";
// In Server Components:
import { ProjectCard } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | ReactNode | — | Title (any content). |
actions | ReactNode | — | Secondary links / buttons, clickable above the card link. |
description | ReactNode | — | Supporting text. |
href | string | — | The whole card links here (through the title link). |
icon | ReactNode | — | Content slots. |
tags | readonly ReactNode[] | — | Tag list. |
badge | ReactNode | — | Small status label next to the title ("New", "Beta"). |
external | boolean | — | Opens href in a new tab (rel="noopener noreferrer"). |
headingAs | HeadingElement | h3 | Heading element of the title (default h3). |
meta | ReactNode | — | Muted line under the title (package name, date). |
renderLink | (props: ProjectCardLinkRenderProps) => ReactNode | — | Render the title link with your router (next/link). |
titlerequiredReactNode
Title (any content).
actionsReactNode
Secondary links / buttons, clickable above the card link.
descriptionReactNode
Supporting text.
hrefstring
The whole card links here (through the title link).
iconReactNode
Content slots.
tagsreadonly ReactNode[]
Tag list.
badgeReactNode
Small status label next to the title ("New", "Beta").
externalboolean
Opens href in a new tab (rel="noopener noreferrer").
headingAsdefault h3HeadingElement
Heading element of the title (default h3).
metaReactNode
Muted line under the title (package name, date).
renderLink(props: ProjectCardLinkRenderProps) => ReactNode
Render the title link with your router (next/link).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
ASCII charts for terminals.
Complex object props use fixed fixtures. Primitive props stay editable.
<ProjectCard href="https://example.com" title="simple-ascii-chart" description="ASCII charts for terminals." tags={["TypeScript", "CLI"]} />ASCII charts for terminals and logs.
Canvas editor.
<ProjectCard href="/projects/chart" title="simple-ascii-chart" description="…" icon={<ChartLineIcon />} tags={["TypeScript"]} actions={<ActionLink href="/docs">Docs</ActionLink>} />ASCII charts for terminals.
<ProjectCard href="https://example.com" title="simple-ascii-chart" description="ASCII charts for terminals." tags={["TypeScript", "CLI"]} />