Skip to content
New

Comparison, table

beta

Your product beside the usual way of doing things, row by row: ticks, crosses or short values, your column tinted.

npx rasengan-ui add comparison-table

Why studios switch from spreadsheets

The way most of us started invoicing, and what changes with Senbon.

FeatureSenbonSpreadsheets and email
Time to write an invoice1 minute15 minutes
Clients pay by card or mobile moneyYesNo
Reminders go out on their ownYesNo
See who is late at a glanceYesNo
Exports your accountant can readYesWith some work
Costs nothing to startYesYes
Switch in an afternoon

Import your clients and open invoices from a spreadsheet in one step.

Use it
A product replacing a habit (spreadsheets, email, paper) with a few clear, honest differences.
Avoid it
Comparing your own plans: pricing-comparison. Naming a competitor: check the law where you sell.
Built with
ButtonTable

Installation

Terminal
npx rasengan-ui add comparison-table

It installs into components/blocks/comparison-table/, with what it uses (Button, Table) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { ComparisonTable } from "@/components/blocks/comparison-table";
import { home } from "@/content/home";
 
export default function Home() {
  return <ComparisonTable content={home.comparison} />;
}
content/home.ts
import { example, type ComparisonTableContent } from "@/components/blocks/comparison-table";
 
export const home = {
  comparison: { ...example, columns: { ours: "Senbon", theirs: "Paper invoices" } } satisfies ComparisonTableContent,
};

Compare with the way things are usually done (spreadsheets, email, paper), not with a named competitor. Each row has a value for your product and one for the other way: true (a tick), false (a cross) or a short text. Rows where you are not better are allowed, and read as honest.

Content

FieldTypeLimitsGuidance
titlestring8–70 chars'Why teams switch from spreadsheets'.
sublineoptionalstring≤ 180 chars
columnsobjectThe two columns' headings.
columns.oursstring1–24 charsYour product: 'Senbon'.
columns.theirsstring1–32 charsThe usual way, not a competitor's brand: 'Spreadsheets and email'.
rowsobject[]3–12 itemsWhat matters to the reader, honestly: rows where you lose are allowed.
rows[].labelstring1–60 charsWhat is compared: 'Set up in a day'.
rows[].oursunknownYes, no, or a short value ('2 min').
rows[].theirsunknown
labelsobjectWords read by screen readers where the table shows signs.
labels.featurestring1–24 charsHeads the first column, for screen readers: 'Feature'.
labels.yesstring1–16 charsRead for a tick: 'Yes'.
labels.nostring1–16 charsRead for a cross: 'No'.
ctaoptionalobject
cta.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
cta.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
noteoptionalstring≤ 140 chars

Props

PropNotes
contentComparisonTableContent; the example when left out
idthe section's id, for anchor links; "comparison" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the <section>, for spacing

Accessibility

  • A real table: the two columns are column headers, each row's label a row header.
  • Ticks and crosses are read as labels.yes and labels.no.