Model Compare

A comparison table for AI models listing name, latency with a color coded badge, cost and a quality note per row. Helps users pick between LLM providers.

src/registry/ui/model-compare.tsx/r/model-compare.json

Installation#

bash
npx shadcn@latest add @minidev/model-compare

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/model-compare.json

Usage#

tsx
import { ModelCompare } from "@/components/ui/model-compare"

export function Example() {
  return (
    <ModelCompare rows={[
      { name: "Fast", latencyMs: 420, cost: "$0.002", quality: "Good" },
      { name: "Pro", latencyMs: 980, cost: "$0.01", quality: "Great" },
      { name: "Max", latencyMs: 1800, cost: "$0.04", quality: "Best" },
    ]} />
  )
}

API reference#

ModelCompare props
PropTypeDefault
rowsModelRow[]SAMPLE_ROWS
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All AI chat UI components for React