Skip to content

COMPONENT / status-bar

Status Bar_

Thin --ground-void system strip with fake system strings, an optional 4-bar signal meter and a live UTC clock. Requires @cybr/tokens.

Install

  1. 1. Map the @cybr namespace, once per project. Add this inside your components.json, or into its existing "registries" object. No components.json yet? Run npx shadcn@latest init first to create one.

    "registries": { "@cybr": "https://cybr-ui.com/r/{name}.json" }
  2. 2. Add components:

    $ npx shadcn@latest add @cybr/status-bar

If shadcn reports Unknown registry "@cybr", step 1 is missing from that project's components.json.

Preview

SYS:OKREV 0.1NODE / EU-NE--:--:-- UTC

Props

Component props
PropTypeDefaultDescription
itemsReactNode[]—System strings on the left, such as SYS:OK or REV 0.1. They clip on narrow screens; the right side never does.
signal0 | 1 | 2 | 3 | 4—Shows a 4-bar meter with this many bars lit in --signal. Leave it out to hide the meter.
clockbooleantrueShows a live HH:MM:SS UTC clock.
classNamestring—Extra classes, merged after the defaults with cn().
...propsOmit<ComponentProps<"div">, "children">—Every other native <div> attribute and ref is forwarded.

Usage

Needs the stylesheet from @cybr/tokens. After the install, import it in app/globals.css:

@import "tailwindcss";
@import "../styles/cybr-tokens.css";
import { StatusBar } from "@/components/ui/status-bar";

export function Header() {
  return <StatusBar items={["SYS:OK", "REV 0.1"]} signal={3} />;
}

States

Accessibility