SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

DocsPageHeader

The opening of every docs page in one order.

@sdxc/result

Return failures as values, so every caller sees the error it has to handle.

Works in Workers, Bun and Node.

Last updated

View code
tsx
<DocsPageHeader
	crumbsLabel="Breadcrumb"
	crumbs={[{ label: "Docs", href: "/docs" }, { label: "Packages" }, { label: "@sdxc/result" }]}
	title="@sdxc/result"
	mono
	description="Return failures as values, so every caller sees the error it has to handle."
	notice={<PlanNotice>Available on every plan</PlanNotice>}
	updated={{ label: "Last updated", date: "2026-10-12", text: "Oct 12, 2026" }}
	actions={<PageActions markdownHref="/docs/result.md" labels={labels} links={links} />}
/>

Demo docs sites

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { DocsPageHeader } from "@sdxc/ui/docs";

Renders the header. Long names in the title or lead break inside the column, the trail wraps whole steps, and under 30rem of header width the page's own crumb hides since the title names it.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
crumbsCrumb[]NoThe trail from the docs root to this page; the last crumb is the page itself.
crumbsLabelstringNoName of the breadcrumb landmark, such as "Breadcrumb".
titleRemixNodeYes
monobooleanNoSets the title in the monospace face, for a title that is a name a reader types.
descriptionRemixNodeNoThe lead under the title.
updatedUpdatedNo
actionsRemixNodeNoPage actions for the meta row, such as <PageActions>.
noticeRemixNodeNoA plan or role notice drawn under the lead.

Also accepts everything in Omit<TagProps<"header">, "children" | "title">.

@sdxc/ui

Can’t find it? Contact us