SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

NextSteps

The hand-written "Next steps" block that ends a guide.

View code
tsx
<NextSteps
	title="Next steps"
	id="next-steps"
	items={[
		{ title: "Route alerts", href: "/docs/alerts", description: "Page the person on call instead of the whole team." },
		{ title: "Publish a status page", href: "/docs/status-pages", description: "Tell customers what is down before they ask." },
		{ title: "Invite your team", href: "/docs/team", description: "Share monitors and on-call duty." },
	]}
/>

<NextSteps variant="list" title="Related" items={items} />

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 { NextSteps } from "@sdxc/ui/docs";

Renders the titled block, named by its heading. The heading takes level, else the ambient HeadingScope level, else <h2>; each item is one whole-card or whole-row link.

Props

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

PropTypeRequiredDescription
titlestringYes
idstringNoId of the heading, so a table of contents can link to the block.
levelHeadingLevelNoHeading level; defaults to the ambient HeadingScope level, else DEFAULT_LEVEL.
itemsItem[]YesTwo to four destinations, in the order a reader should consider them.
variant"cards" | "list"NoDefaults to DEFAULT_VARIANT.

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

Types

NameValuesWhat it decides
Variant"cards" | "list"cards tiles the links in an auto-fitting grid; list runs them down a ruled list.
@sdxc/ui

Can’t find it? Contact us