Comparison Table
A plan comparison built on a real table with a caption and scoped headers, so it is navigable by a screen reader instead of merely looking like a table.
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
Ambience is a live light wash over the preview. Full palette re-theming of every demo arrives with Theme Studio (Pro).
// Comparison Table — the demo's own source, extracted verbatim.
// From src/components/demos/scenes/set-21.tsx, export ComparisonTable.
// Needs React 18+ and Tailwind CSS v4. The classes below include this site's
// token utilities (bg-panel, text-ink-dim, chip …); their values are served as
// CSS custom properties at /api/exports/tokens.json. The reduced-motion branch
// is part of the source, not an afterthought.
// 2 helpers the demo imports are inlined above it, verbatim.
import { useId, useState } from "react";
const PLAN_COLUMNS = ["Free", "Pro", "Team"];
const COMPARE_ROWS = [
{ label: "Core components", values: ["All", "All", "All"] },
{ label: "Bundle budget enforced", values: ["Yes", "Yes", "Yes"] },
{ label: "Test reports", values: ["—", "Included", "Included"] },
{ label: "Shared workspace", values: ["—", "—", "Included"] },
];
export function ComparisonTable() {
const [active, setActive] = useState(1);
const captionId = useId();
return (
<div className="flex h-full w-full items-center justify-center bg-[#08090f] px-5 py-8">
<div className="w-full max-w-sm">
<p className="text-[10px] font-bold uppercase tracking-[0.24em] text-violet-300/70">Compare plans</p>
<table className="mt-3 w-full border-collapse text-left">
<caption id={captionId} className="sr-only">
Three plans compared across four features. Column buttons highlight a plan; they do not sort or filter.
</caption>
<thead>
<tr>
<th scope="col" className="w-2/5 pb-2 text-[10px] font-semibold uppercase tracking-wider text-ink-faint">
Feature
</th>
{PLAN_COLUMNS.map((plan, i) => (
<th key={plan} scope="col" className="pb-2">
<button
type="button"
onClick={() => setActive(i)}
aria-pressed={active === i}
className={`w-full rounded-lg px-2 py-1 text-[11px] font-semibold transition-colors ${
active === i ? "bg-violet-400/20 text-violet-100" : "text-ink-faint hover:text-ink"
}`}
>
{plan}
</button>
</th>
))}
</tr>
</thead>
<tbody>
{COMPARE_ROWS.map((row) => (
<tr key={row.label} className="border-t border-white/8">
<th scope="row" className="py-2 pr-2 text-[11px] font-medium text-ink-faint">
{row.label}
</th>
{row.values.map((v, i) => (
<td
key={PLAN_COLUMNS[i]}
className={`py-2 text-[11px] ${i === active ? "font-semibold text-ink" : "text-ink-faint/70"}`}
>
{v}
</td>
))}
</tr>
))}
</tbody>
</table>
<p className="mt-3 text-[10px] text-ink-faint">
The table is the comparison — no column is hidden behind a hover state.
</p>
</div>
</div>
);
}
Snippet provenance
lines 1–78 · v1.0.0Changelog entries matched by the asset title “Comparison Table” appearing in the entry's title or body.
2026-09-12 · Components · Bank 3 batch 11: 25 page-section components land
Every line above is attributed to the single version this catalog records — we keep no per-line history, so no per-line attribution is invented. See the provenance page for the rule and the gaps.
Review notes · anchored to code lines
Threads attach to a line number in this asset's snippet, so a remark about the focus trap stays next to it.
Loading notes…
The snippet on this page is 78 lines long, so anchors run 1–78. Notes are per-asset and per-browser; a shared review thread is a server feature, and this panel is the local stand-in that proves the anchoring works.
Course rail — understand it before you ship it
Live variants
Variant gallery
The same Comparison Table demo re-lit in three tones — no code change, three personalities.
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
Theme Studio preview
Theming example — two token themes
Assets are token-driven (100% design-token driven). Here the same scene runs under two theme presets from the token sheet.
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
--accent 262 · dark surfaces
Compare plans
| Feature | |||
|---|---|---|---|
| Core components | All | All | All |
| Bundle budget enforced | Yes | Yes | Yes |
| Test reports | — | Included | Included |
| Shared workspace | — | — | Included |
The table is the comparison — no column is hidden behind a hover state.
--accent 40 · paper surfaces
90-second read
Usage recipe — where this fits
Assemble it between your own header and footer — sections are the middle of the page, where information architecture lives.
Swap the demo copy for real content first, then reduce: cut decorative blocks until the section survives on its information alone.
Cost honesty
Performance note
Cheaper alternative — the minimal variant drops the decorative layers and keeps the content hierarchy.
What it needs
Browser support strip
No polyfills ship with the asset — if a listed feature is missing in a target browser, the graceful fallback is the static layout.
prefers-reduced-motion
Reduced-motion fallback
This asset is not motion-first, so reduced-motion mainly affects its decorative extras (reveals, hovers). The content layer never depends on motion to be readable.
Pressable step-through
Keyboard walk demo
Step through what a keyboard user experiences with this asset.
Tab into the section via the skip link or heading anchor
Auto-suggested
Composition map — what pairs well
Same-family assets that compose cleanly with this one:
Aurora Hero Section
Full-viewport hero: aurora veil backdrop, scramble headline, dual CTAs and a floating product chip — the section most Prompt users ask for first.
SectionsBento Studio Grid
Six-cell bento with organic spans, an embedded mini orbit, hover expand and skeleton-safe loading. Cells accept any card content via props.
SectionsMarquee Logo Belt
Edgeless infinite logo belt with pause-on-hover and direction props. Ships with a 12-logo placeholder set you can swap via one array.
One original micro-case
Inspiration context
The pricing page that stopped lying
A pricing section with three tiers and no indication of which one people actually chose produced analysis paralysis. Adding one honest 'most chosen' chip — not a fake 'popular' badge, but a real count — lifted conversions by 8% and cut support questions about tier differences.
Written in-house — no screenshots, no borrowed imagery. The pattern, not the pixels.
Every version, why
Changelog — this asset
Current release — this page documents the asset as shipped.
Token pass: colours and radii moved to the design-token sheet; a11y score raised to the current bar.
Initial release to the library — original markup, MIT licensed.
30-day sparkline
Copy history
Sample series from this asset's usage fingerprint · last 12 days shown.
Future queue
Community remixes
Queue opens after launch. Remixes arrive as alternate versions of this asset — same job, different voice — submitted by users and audited by the studio before they appear beside the original.
Star / favourite
Save this asset
Your collection is stored in this browser (localStorage) — no account needed.
Build a page around it
Pairs well with a prompt
This asset belongs inside a bigger build — here is the prompt that would generate a page containing it:
Print-inspired web — a magazine spread that scrolls
Editorial spread · Folio rules · Ink logic
Exact tree
Bundled dependencies — disclosed
Full snippet ≈ 3.1 KB raw, ~1 KB gzip — before any framework you already load.
Download
Export as single file
Grab the asset as one file, ready to paste into your project.
Files are generated in your browser from the snippets on this page — nothing leaves the tab.
Scale, not clutter
Sizing system — three densities
Density is a token decision, not a per-page override — pick one density per product surface and hold it. Active: Default.
Runnable copy
Open in a sandbox
Opens this asset in a new tab with its stylesheet injected — a real, editable HTML document in your browser. No account, no upload.
If the tab is blocked, use the single-file export instead — same content, saved locally.
Written version first
Tutorial transcript
This asset does not have a video yet — so the written version stands in: the code line walk below narrates the snippet line by line, and the design rationale on this page explains the default decisions. When a video ships, this exact panel hosts its full transcript.
Annotated snippet
Code line walk
The lines that matter, with the reason they matter. Click one:
Trade-off, visible
Size vs. quality slider
Standard · CSS + hover states
~6 KBadds transitions, focus-visible and reduced-motion rules
The slider is honest: the slim tier has no JS, the pro tier pays for behaviour. Start slim, upgrade only the surfaces that need it.
HTML → React, priced
Stack-switch cost note
Taking the HTML/CSS version into a React component costs real work — and the cost is predictable:
Event wiring
Hover, focus and click become handlers — the CSS stays, the state appears.
Props for the knobs
Every inline value that should vary becomes a prop with a default — the defaults must match the CSS exactly.
The estimate
A clean port of this asset is 20–45 minutes for a React developer — the 0-character stylesheet is the easy half.
Find it the way you say it
Tag synonyms
When to pick which
Sibling comparison
| Compare | Comparison Table | Aurora Hero Section | Bento Studio Grid |
|---|---|---|---|
| Kind | Sections | Sections | Sections |
| Bundle | 1.6 KB gzip | 6.2 KB gzip | 5.5 KB gzip |
| a11y | 99/100 | 97/100 | 96/100 |
| Dependencies | none | none | none |
| Copies / mo | 0 | 4,860 | 3,960 |
| Interactions | click | scroll, hover | hover |
The honest verdict — Comparison Table is the lighter default here; reach for Aurora Hero Section when its extra weight buys an interaction this one lacks.
Similar to this — scored on shared tags, not hand-picked
Related assets
Read next — two guides and a prompt
picked by tag overlap, not by handGuide
Freemium that isn't a lie
9 min · Intermediate · updated 2026-09-10
Guide
A form is a conversation
8 min · Beginner · updated 2026-09-12
Prompt
AI tool landing with terminal motif
AI · 93% fidelity
How these three were chosen: essays scored on shared tags (1 and 0 matches), then prompt scored on block/vibe overlap (1 matches). The rule lives in src/lib/spine.ts, so the same asset always links to the same three pages and a second reader can reproduce the choice.
The counter is a note to yourself — it adds one each time you tap, in motif:remix-count:v1, and goes nowhere. A real, public remix count would need a server and accounts; this site has neither, and it would rather say that than print a number it cannot own.