Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Feedback & states

Error page

A Vercel-style 404, 403, or 500 page with a status pill, a token-drawn illustration per status, site search, popular pages as cards, and a copyable request reference.

bunx --bun @getweini/cli@latest add button copy-button kbd link search-input
Customize
  • Recovery comes before apology: a search field and the `links` cards sit under the actions. Handle the `search` event; the `/` key hint is decorative, so wire the shortcut yourself if you want it.
  • Pick the page with `status`: `404`, `403`, or `500`. Each has its own eyebrow, message, actions, status-bar text, and illustration address in `copy[status]`, so a translation is a prop and nothing else needs editing.
  • The block emits `primary` and `secondary`, plus `switch-account` from the 403 page. Typical wiring is "Back to dashboard" and "Go back" for 404, "Request access" for 403, and "Try again" plus "Contact support" for 500.
  • The illustration is inline SVG drawn with `fill-*` and `stroke-*` token classes, so it follows light, dark, and custom themes. It is decorative; the `h1` reads the status and headline together.
  • For 500, set `reference` to a request or incident ID. It is shown in the footer with a `CopyButton` so people can quote it to support; leave it empty to hide it.
  • Use `loading` on a retry action: the primary button shows progress and both actions are blocked until your request settles.