Badge
Size Scale
A badge with a size scale: sm, md and lg change one grid step, and height, type size, padding, radius and dot are all computed from it.
What you can change
- the size through size
- the trailing number through count
- the caption through children
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-015?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-015-* variables. Server rendered: no hooks. The data-size attribute sets a single number, --vibeui-badge-015-unit, and everything else is assembled with calc from it: the height is six steps, the type size three, the horizontal padding 2.4, the radius three, the dot and the gap 1.6. That is why the small badge does not look like a shrunken copy: the proportions stay the same rather than being eyeballed for each size. The trailing counter is set off by a vertical line running the full height (align-self:stretch), so the divider does not have to be fitted to the type size.
Tags
- badge
- size
- scale
- tokens
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…