Badge
Key Value Badge
A key-value badge for technical data: the key cannot be selected with the mouse, the value is selected whole in a single click.
What you can change
- the caption through label
- the value through value
- the key and border tone through accent
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/badge-025?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, the palette in the local --vibeui-badge-025-* variables. Server rendered: no hooks. Two zones in one border under a shared overflow:hidden: a dark key and a light value, with the boundary between them being a change of background rather than a line. The key is marked user-select:none and the value user-select:all, so a click on the hash selects exactly the hash and the word "commit" does not travel to the clipboard with it. The value is set in a monospaced face and truncated with an ellipsis, with the full one in title. Both zones are under aria-hidden, and the whole badge is announced as one phrase through aria-label. The palette rests on light-dark(): in a dark context the zones change their lightness and the border becomes lighter than the background. The key tone is overridden by the accent prop and the value fill by background.
Tags
- badge
- key-value
- metadata
- copy
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…