Ballmac UI home

Parallel Attempts

New

Compare several runs of the same task side by side: status, summary, a changed-lines bar, time and cost on each card, a suggested run, and a native radio group to pick one and continue.

v1.0.0Updated Oct 24, 2026Ships with a test
What changed
Attempts

Installation

$ pnpm dlx shadcn@latest add @ballmac/parallel-attempts

Usage

import { ParallelAttempts } from "@/components/ballmac/parallel-attempts"

The full example is in the Code tab above.

Examples

Pick and continue

Attempts

Pick a finished attempt to continue with.

API reference

PropTypeDefault
attempts*

The attempts to compare.

Attempt[]—
value

The chosen attempt id. Controlled.

string | null—
defaultValue

The chosen attempt id for uncontrolled use.

string | nullnull
onValueChange

Called when a finished attempt is picked.

(id: string) => void—
recommended

Marks one attempt as the suggested one.

string—
recommendedLabel

Text for the suggestion badge.

string—
onChoose

Called when the person confirms the picked attempt. Adds the confirm button.

(id: string) => void—
chooseLabel

Text for the confirm button, which gets the attempt's name added.

string—
label

Heading read by assistive technology.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
TabMoves into the group once; the arrow keys move between finished attempts
ArrowRight / ArrowDownPicks the next finished attempt (native radio behaviour, mirrored in right-to-left by the browser)
SpacePicks the focused attempt
Running, failed or stoppedShown with an icon and words, and not selectable
Screen readersA fieldset with a hidden legend; each radio is described by its summary

Use with AI

attempts is [{ id, label, model?, status: running | done | failed | stopped, summary, added?, removed?, files?, duration?, cost?, progress? }]. value / defaultValue / onValueChange pick a finished attempt; recommended marks one; onChoose adds a confirm button. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Parallel Attempts (@ballmac/parallel-attempts) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Best-of-n runs where a person chooses the result
  • Comparing two or more models on the same task

Not for

  • Comparing prompts in a table; use the agent-4 block
  • A single run's steps; use trace or agent-lanes

Registry JSON: https://ui.ballmac.com/r/parallel-attempts.json

Credits

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.