Signature
CoordLabel
Small coordinate / index label.
● LIVE
03SEC // 0x4A2THREAT 02 :: TRACE 12%
"use client";import { CoordLabel } from "@/registry/okibi/ui/coord-label";export default function CoordLabelDemo() { return ( <div className="flex flex-wrap items-center justify-center gap-4"> <CoordLabel bracket>03</CoordLabel> <CoordLabel>SEC // 0x4A2</CoordLabel> <CoordLabel bracket>THREAT 02 :: TRACE 12%</CoordLabel> </div> );}npx shadcn@latest add https://okibi.cndr.dev/r/coord-label.jsonInstallation
Install the theme first, then add the component:
npx shadcn@latest add https://okibi.cndr.dev/r/coord-label.jsonCopy the source from the Code tab above into components/ui/coord-label.tsx. It uses the cn helper and the okibi theme tokens — install the theme first if you haven't.
Usage
import { CoordLabel } from "@/components/ui/coord-label"
<CoordLabel bracket>0x4A2</CoordLabel>Examples
Bracketed
bracket wraps the label in [ … ] reticle brackets for a coordinate / index marker.
● LIVE
SEC // 0x4A2SEC // 0x4A2
import { CoordLabel } from "@/registry/okibi/ui/coord-label";export default function BracketDemo() { return ( <div className="flex flex-wrap items-center justify-center gap-4"> <CoordLabel>SEC // 0x4A2</CoordLabel> <CoordLabel bracket>SEC // 0x4A2</CoordLabel> </div> );}API Reference
CoordLabel
| Prop | Type | Default | Description |
|---|---|---|---|
bracket | boolean | false | Wrap children in [ … ] reticle brackets. |
as | ElementType | "span" | Render element. |
Accessibility
- The label is plain mono text, announced inline in reading order — give it a semantic element via
as(e.g.'dt') when the surrounding structure calls for one. - When
bracketis set, the[and]reticles arearia-hiddenandselect-none, so assistive tech and copy/paste get the clean value, not the brackets. - Used as pure decoration (a HUD coordinate with no informational role), mark the wrapper
aria-hiddenso it is not read — never let it be the only place essential meaning lives. - Default
text-muted-foregroundmeets AA at this small size; if you recolor it viaclassName, use a*-sparktoken rather than a bare accent so contrast holds.
Guidelines
Do
- Use it for tiny mono index / coordinate annotations — the HUD's connective tissue between larger elements.
- Turn on
bracketfor the targeting-reticle[ … ]framing when you want that overlay feel. - Set
asto the right semantic element when the label is structural, not just decorative.
Don't
- Do not pour body copy into it — it is wide-tracked, uppercase micro-text, sized for short codes.
- Do not override the color with a bare accent that drops this small text below the contrast bar.
ConsolePanel
Tapped telemetry channel — an instrument channel-strip header with a square status LED, a line-numbered log body, and a blinking block cursor under a scanline field.
GlitchText
Per-character scramble/decode headline over a persistent ambient signal-noise field — resolves on hover, in-view, or as a continuous pulse (reduced-motion aware).