Sparkline
Win-Loss Row
A row of wins and losses: a bar up means it worked, down means it did not. The bars carry no height on purpose — the only question here is how often, and where in a streak.
What you can change
- the row through outcomes: 1 for a win, −1 for a loss, 0 for a draw
- the caption through label and the summary through summaryTemplate with {wins}, {losses} and {total}
- the screen-reader label through ariaTemplate with the same placeholders
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/sparkline-004?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 --vibeui-sparkline-004-* palette. A server component with no SVG. The row is a grid of two equal rows: a win takes the upper one, a loss the lower, so no offsets have to be computed. Each mark's column is set explicitly — with the row fixed, auto-placement would order the bars wrongly. A zero line runs through the middle and holds the row together. A draw is a short dash on that line: a gap would read as missing data, which means something else. The prop is called outcomes rather than results: results is a legacy HTML attribute and React's types would narrow it to a number.
Tags
- sparkline
- win-loss
- status
- compact
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…