Skip to content
Haze UI

Check runs

A list of automated checks such as tests, lint and build, each with its state, command, last run and Output and Run actions.

pnpm dlx shadcn@latest add @haze/check-runs
Open preview in a new tab
Liveno JavaScript

When to use

  • A project dashboard shows whether its tests, lint, typecheck and build pass
  • A deploy screen lists the checks that gate a release

When not to use

  • The steps run in a fixed order a person walks through. Use stepper.
  • Only one overall state matters. Use status or alert.

Installation

Add the Haze registry to components.json once, then install Check runs with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/check-runs
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
titlestring"Checks"Visible title; also names the section.
checks{ name: string; command?: string; state: "passed" | "failed" | "running" | "cancelled" | "never"; detail?: string; outputHref?: string; runHref?: string }[]–Checks in display order.
stateLabelsPartial<Record<State, string>>–Replaces the words for each state, for translation.
runLabelstring"Run"Label of the button that starts a check.
outputLabelstring"Output"Label of the link to a check's output.
headingLevel2 | 3 | 43Level of the list's title.
classstring–Additional classes on the panel.

Keyboard interactions

Tab
Move through the Output and Run actions.

Accessibility

  • Every state is written out next to its icon, so passed and failed never rely on green and red alone.
  • The Output and Run buttons name the check they act on, such as "Run Typecheck".

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI component "Check runs" with `npx shadcn@latest add @haze/check-runs`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import CheckRuns from "@/components/haze/ui/check-runs.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/ui/check-runs.md

  • Customize with real content

    Adapt the Haze check-runs ui for our product. Replace the demo values of these props with our real content: title, checks, stateLabels, runLabel, outputLabel, headingLevel, class. Keep the layout, the heading level rules and these accessibility details: Every state is written out next to its icon, so passed and failed never rely on green and red alone. The Output and Run buttons name the check they act on, such as "Run Typecheck". Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using check-runs, check it fits: use it when a project dashboard shows whether its tests, lint, typecheck and build pass; a deploy screen lists the checks that gate a release. Avoid it when the steps run in a fixed order a person walks through. use stepper.; only one overall state matters. use status or alert.. Alternatives: @haze/stepper, @haze/status, @haze/uptime-tracker.

Dependencies

  • npm: @lucide/astro
  • @haze/button
  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog