Skip to content

How we compare

Comparison table with a blue-tinted column.

Usage

Usage
import { ComparisonTable } from '@/components/blocks/comparison-01'


<ComparisonTable />


// Bring your own brand and rows. true renders a check, false a cross.
<ComparisonTable
  heading="Why teams switch."
  brand={{ name: 'Acme', logo: <AcmeLogo /> }}
  competitor="Spreadsheets"
  rows={[
    { label: 'Setup time', ours: '5 minutes', theirs: 'A week' },
    { label: 'Live collaboration', ours: true, theirs: false },
  ]}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/comparison-01

Source

Props

How we compare props
PropTypeDefaultDescription
headingstring= 'How we compare.'Section heading.
descriptionstring= A line about GlossaMuted line under the heading. Pass an empty string to hide it.
brand{ name: string; logo?: ReactNode }= { name: 'Glossa', logo: <GlossaMark /> }Name and optional logo shown in the header of your highlighted column.
competitorstring= 'Translation agencies'Header of the grey comparison column.
rowsComparisonRow[]= 6 sample rowsRows with a label plus ours and theirs values. Each value is a string, or a boolean that renders a check (true) or a cross (false).
classNamestring= —Additional classes for the section.
styleCSSProperties= —Inline styles, handy for overriding the --pp-* color variables.