Skip to content
Signature

CoordLabel

Small coordinate / index label.

● LIVE
03SEC // 0x4A2THREAT 02 :: TRACE 12%
npx shadcn@latest add https://okibi.cndr.dev/r/coord-label.json

Installation

Install the theme first, then add the component:

npx shadcn@latest add https://okibi.cndr.dev/r/coord-label.json

Copy 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

API Reference

CoordLabel

PropTypeDefaultDescription
bracketbooleanfalseWrap children in [ … ] reticle brackets.
asElementType"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 bracket is set, the [ and ] reticles are aria-hidden and select-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-hidden so it is not read — never let it be the only place essential meaning lives.
  • Default text-muted-foreground meets AA at this small size; if you recolor it via className, use a *-spark token 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 bracket for the targeting-reticle [ … ] framing when you want that overlay feel.
  • Set as to 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.

On this page