BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neon-ui/health-card

HealthCard

neon-ui/health-card
FreeComponent

Project health rollup on the MetricCard shell: an overall status pill and tint over a mono grid of supporting signals (latency, errors, uptime).

Install it

npx shadcn@latest add https://ui.neon.com/r/health-card.json

Source

src/components/health-card/health-card.tsxui.neon.com/r/health-card.json · first 6 KB
1"use client";
2
3import { Alert02Icon } from "@hugeicons/core-free-icons";
4import { HugeiconsIcon } from "@hugeicons/react";
5import type { ComponentProps } from "react";
6
7import { NeonLoader } from "@/components/neon-loader/neon-loader";
8import { Skeleton } from "@/components/ui/skeleton";
9import { cn } from "@/lib/utils";
10
11/** Operational health of a surface, worst-first: down > degraded > maintenance > healthy. */
12export type HealthStatus = "healthy" | "degraded" | "maintenance" | "down";
13
14export interface HealthSignal {
15 /** Short mono caption, e.g. "Latency p99". */
16 label: string;
17 /** Preformatted figure, e.g. "128 ms" or "99.98%". */
18 value: string;
19 /** Optional tint for this signal's dot; omit for no color. */
20 status?: HealthStatus;
21}
22
23/* ─────────────────────────────────────────────────────────
24 * HEALTH ROLLUP, on the MetricCard shell
25 *
26 * The overall status is the light: a faint status-tinted
27 * grain wash rises from the bottom edge and a mono pill
28 * names it,
29 * both drawn from the house status vocabulary — active
30 * green, scaling amber, sleeping gray, destructive red.
31 * Beneath, the supporting signals (latency, errors, uptime)
32 * read as a quiet mono grid; a signal only takes color when
33 * it is the reason the rollup is not green. Text stays
34 * muted so a wall of cards reads calm. No motion.
35 * ───────────────────────────────────────────────────────── */
36const STATUS_DOT: Record<HealthStatus, string> = {
37 degraded: "bg-[var(--status-scaling)]",
38 down: "bg-destructive",
39 healthy: "bg-[var(--status-active)]",
40 maintenance: "bg-[var(--status-sleeping)]",
41};
42
43/** Wash tint: set as text color so neon-card-wash reads `currentColor`. */
44const STATUS_TINT: Record<HealthStatus, string> = {
45 degraded: "text-[var(--status-scaling)]",
46 down: "text-destructive",
47 healthy: "text-[var(--status-active)]",
48 maintenance: "text-[var(--status-sleeping)]",
49};
50
51const STATUS_LABEL: Record<HealthStatus, string> = {
52 degraded: "degraded",
53 down: "down",
54 healthy: "healthy",
55 maintenance: "maintenance",
56};
57
58const HealthBadge = ({
59 status,
60 label,
61}: {
62 status: HealthStatus;
63 label?: string;
64}) => (
65 <span
66// … truncated

What it pulls in

npm packages

  • @hugeicons/react
  • @hugeicons/core-free-icons

Other registry items

  • utils
  • https://ui.neon.com/r/skeleton.json
  • https://ui.neon.com/r/neon-loader.json
  • https://ui.neon.com/r/neon-tokens.json

Files it writes

  • src/components/health-card/health-card.tsx

Facts

Registry
neon-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

ui.neon.com neon-solutions/ui on GitHub Raw registry item This item as JSON

More from neon-ui

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ActivityFeedactivity-feedneon-uiComponentsFree2 deps
AgentChatagent-chatneon-uiComponentsFree6 deps
AnimatedWashanimated-washneon-uiComponentsFreeno deps · 2 files
ApiKeyListapi-key-listneon-uiComponentsFree2 deps
AppCardapp-cardneon-uiComponentsFree2 deps
AppCreatorapp-creatorneon-uiComponentsFree2 deps
AuthFormauth-formneon-uiComponentsFreeno deps
AutoscaleChartautoscale-chartneon-uiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex