Model Race
CSSOne prompt across several models, with live time and cost, and the winner marked.
atlas-lwaiting
Time
0.00sCost
$0.0000atlas-mwaiting
Time
0.00sCost
$0.0000atlas-swaiting
Time
0.00sCost
$0.0000Install
$ npx shadcn@latest add https://spotcheckui.com/r/model-race.jsonNo motion engine needed.
Usage
import { ModelRace } from "@/components/spotcheck/model-race"
<ModelRace
lanes={[
{ id: "a", model: "atlas-l", text: answer, status: "streaming", ms: 1240, cost: 0.0012 },
{ id: "b", model: "atlas-s", text: fast, status: "done", ms: 890, cost: 0.0002 },
]}
/>It shows whatever you pass, so run one useStream per lane and update lanes as they arrive. Screen readers hear the winner, not every token.
Props
- lanes * Required
RaceLane[]Default —
Keyboard
Nothing to operate: this component displays information.
Reduced motion
Numbers change at once, without rolling.