SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

TableOfContents

Island.

Install the CLI

Install the command line with your package manager. It needs Node 22 or later and runs on macOS, Linux and Windows.

Log in

Run the login command and approve the request in your browser. The CLI stores a session for this machine only.

Use a token in CI

On a CI runner there is no browser, so create an access token in Settings and expose it as an environment variable.

Add a monitor

Point a monitor at the URL you care about. The first check runs from three regions within a minute.

Next steps

Choose who gets alerted, then publish a status page so customers see what you see.

View code
tsx
<TableOfContents
	label="On this page"
	items={[
		{ id: "install", text: "Install the CLI", level: 2 },
		{ id: "login", text: "Log in", level: 2 },
		{ id: "token", text: "Use a token in CI", level: 3 },
		{ id: "monitor", text: "Add a monitor", level: 2 },
		{ id: "next", text: "Next steps", level: 2 },
	]}
/>

{/* Below the rail width, fold it into the sticky bar */}
<TableOfContents label="On this page" items={items} layout="bar" />

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

Renders the in-page navigation, or nothing when the page has fewer than minItems headings. Load @sdxc/ui/docs/table-of-contents in the browser entry. Headings that the page's layout gives a scroll-margin-top set the line a section is read from.

Examples

tsx
<TableOfContents items={anchors} label="On this page" layout="bar" />

Props

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

@sdxc/ui

Can’t find it? Contact us