Skip to content
caliper ui pro docs

Terminal 404

A 404 for developer products: a small terminal replays the failed request, names the page that was probably meant, then takes commands. Type a path to go there, Tab completes the closest, and ls lists the pages.

Pro

Nothing at this address

Error 404. There is no page at /docs/instalation. The closest is /docs/installation.

When to use

  • Developer tools, APIs and docs, where people mistype paths.
  • Any site with a known list of routes to match against.

When not to use

  • Audiences who would not recognise a prompt; use the orbit or the plain page.
  • Very large sites; list the main sections, not every page.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/not-found-terminal

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

NotFoundTerminal

7 props
PropTypeDefaultDescription
path *string—The path that was requested.
routes *readonly TerminalRoute[]—
onNavigate *(path: string) => void—Called with a route's path; usually your router's push.
titlestring"Nothing at this address"
actionsReactNode—
hoststring"app"Shown in the prompt.
classNamestring—

closestPath

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes log semantics, with aria-hidden and aria-label kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/not-found-terminal.md

The index of every part is at /llms.txt.

More in Pages