148
An us-versus-the-old-way comparison with one raised, highlighted column, ticks that pop in as you scroll, a header that sticks, and a phone layout that compares against one rival at a time.
akacomparison table·versus·vs
Run this in any project set up for the shadcn CLI. It copies the Versus Table source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/versus-table.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { VersusTable } from "@/components/versus-table";
export default function Page() {
return <VersusTable />;
}A free React block in the Marketing collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Versus Table source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| eyebrow | string | — |
| titlerequired | ReactNode | — |
| description | ReactNode | — |
| usrequired | VersusColumn & { mark?: ReactNode } | — |
| themrequired | VersusColumn[] | — |
| groupsrequired | VersusGroup[] | — |
| cta | { label: string; href: string } | — |
| className | string | — |