ComparisonTable
ComparisonTableSide-by-side choices Compare approaches in responsive columns, each with its own heading, summary and feature list.
Landing & pricingCompare two workflows
A visual comparison uses cards, not a semantic HTML table. Use parallel headings and concrete statements.
The right foundation for your next page.
Start with the content. Add interactivity where the experience calls for it.
A content page
Give your ideas a clear, readable home with pages that are easy to maintain.
- Write pages and shared fragments in MDX
- Render components at build time
- Keep the focus on your content
An interactive view
Bring the same design system to experiences that respond to your visitors.
- Model local state with Regor refs
- Compose focused, reusable controls
- Add a browser entry where you need it
Parallel headings and readable lists make the differences easy to scan.
<ComparisonTable
eyebrow="CHOOSE YOUR APPROACH"
title="The right foundation for your next page."
subtitle="Start with the content. Add interactivity where the experience calls for it."
columnsLg="2"
variant="none"
class="p-0"
>
<ComparisonColumn
title="A content page"
summary="Give your ideas a clear, readable home with pages that are easy to maintain."
icon="lucide:file-text"
tone="neutral"
>
<ul class="m-0 p-0 list-none">
<ComparisonFeature
>Write pages and shared fragments in MDX</ComparisonFeature>
<ComparisonFeature>Render components at build time</ComparisonFeature>
<ComparisonFeature>Keep the focus on your content</ComparisonFeature>
</ul>
<template #actions>
<BtnLink
class="max-w-full ws-normal"
href="/guides/"
tone="neutral"
variant="surface"
icon="lucide:arrow-right"
iconPosition="end"
>Explore the guides</BtnLink>
</template>
</ComparisonColumn>
<ComparisonColumn
title="An interactive view"
summary="Bring the same design system to experiences that respond to your visitors."
icon="lucide:code"
badge="Made to interact"
tone="accent"
>
<ul class="m-0 p-0 list-none">
<ComparisonFeature tone="accent"
>Model local state with Regor refs</ComparisonFeature>
<ComparisonFeature tone="accent"
>Compose focused, reusable controls</ComparisonFeature>
<ComparisonFeature tone="accent"
>Add a browser entry where you need it</ComparisonFeature>
</ul>
<template #actions>
<BtnLink
class="max-w-full ws-normal"
href="/components/"
tone="accent"
icon="lucide:arrow-right"
iconPosition="end"
>Browse components</BtnLink>
</template>
</ComparisonColumn>
</ComparisonTable> A compact comparison
Use the same composition for a small pair of options.
Fixed layout
Known dimensions.
Responsive layout
Adapts to available space.
<ComparisonTable columns="1" columnsLg="2" variant="outline">
<ComparisonColumn title="Fixed layout" summary="Known dimensions." />
<ComparisonColumn
title="Responsive layout"
summary="Adapts to available space."
tone="info"
/>
</ComparisonTable> All ten semantic tones
The same composition in every semantic tone. Child tones are explicit where the composition owns them, including navigation actions.
neutral Choose your workflow
Shared system
Less repetition.
- Reusable patterns
accent Choose your workflow
Shared system
Less repetition.
- Reusable patterns
feature Choose your workflow
Shared system
Less repetition.
- Reusable patterns
secondary Choose your workflow
Shared system
Less repetition.
- Reusable patterns
custom Choose your workflow
Shared system
Less repetition.
- Reusable patterns
ghost Choose your workflow
Shared system
Less repetition.
- Reusable patterns
info Choose your workflow
Shared system
Less repetition.
- Reusable patterns
success Choose your workflow
Shared system
Less repetition.
- Reusable patterns
warning Choose your workflow
Shared system
Less repetition.
- Reusable patterns
danger Choose your workflow
Shared system
Less repetition.
- Reusable patterns
Switch the site theme to compare the same samples in both palettes.
All eighteen visual variants
Every supported variant is shown in accent, including none. Variant controls the outer treatment; nested content may use its own treatment.
solid surface Choose your workflow
Shared system
Less repetition.
- Reusable patterns
surfaceAlt Choose your workflow
Shared system
Less repetition.
- Reusable patterns
spotlight Choose your workflow
Shared system
Less repetition.
- Reusable patterns
glass Choose your workflow
Shared system
Less repetition.
- Reusable patterns
flat Choose your workflow
Shared system
Less repetition.
- Reusable patterns
flatAlt Choose your workflow
Shared system
Less repetition.
- Reusable patterns
flatSolid outlineFill outline Choose your workflow
Shared system
Less repetition.
- Reusable patterns
subtle Choose your workflow
Shared system
Less repetition.
- Reusable patterns
subtleBtn Choose your workflow
Shared system
Less repetition.
- Reusable patterns
link Choose your workflow
Shared system
Less repetition.
- Reusable patterns
sheen underline Choose your workflow
Shared system
Less repetition.
- Reusable patterns
rail bracket Choose your workflow
Shared system
Less repetition.
- Reusable patterns
none Choose your workflow
Shared system
Less repetition.
- Reusable patterns
Switch the site theme to compare the same samples in both palettes.
Choose the comparison width
2 useful alternatives
Choose by the work you need to do.
Explore
Find a starting point.
- Shared design language
- Readable source
Compose
Combine proven parts.
- Shared design language
- Readable source
3 useful alternatives
Choose by the work you need to do.
Explore
Find a starting point.
- Shared design language
- Readable source
Compose
Combine proven parts.
- Shared design language
- Readable source
Customize
Own the final details.
- Shared design language
- Readable source
Despite its name, this is a responsive card grid, not a native data table. Use a table when values must be associated across rows.
Feature map
| Public feature | Visible example |
|---|---|
| tone, variant | Complete galleries above, with all supported values visible together. |
| eyebrow, title, subtitle | The width comparisons show a full section heading; the original compact example keeps the heading shorter. |
| columns, columnsLg | Compare two and three alternatives. Each starts as one column and changes at the large breakpoint. |
| Default slot | ComparisonColumn children form the alternatives; each owns its feature list and appearance. |
| Native attributes and events | Pass attributes through the root; keyboard behavior belongs to the composed native controls. |
This component exposes tone and variant, but no variantMode. Style individual child components explicitly when their appearance should match.
Behavior and accessibility
The component renders a section with a grid. If readers need row-by-row relationships across many values, use an HTML table instead. Column titles are h3 beneath the optional h2 section title.
API reference
ComparisonTable contract
Props below are the public template API. RefOrValue accepts a literal or a reactive ref; bind refs with a colon-prefixed attribute. Native attributes and events can be passed through the component root.
eyebrow
RefOrValue<string> - Default
not set
Short context above the heading, such as a category or release label.
title
RefOrValue<string> - Default
not set
Visible heading. Choose a short title that identifies the content or task.
subtitle
RefOrValue<string> - Default
not set
Supporting text beneath the title.
tone
RefOrValue<SemanticTone> - Default
inherited
Semantic intent: neutral, accent, secondary, info, success, warning, danger, feature, custom or ghost. The active skin supplies the colors.
variant
RefOrValue<ComponentVariant> - Default
surface
Visual treatment. Accepts solid, surface, surfaceAlt, spotlight, glass, flat, flatAlt, flatSolid, outlineFill, outline, subtle, subtleBtn, link, sheen, underline, rail, bracket or none.
columns
RefOrValue<number | string> - Default
1
Column count from 1 to 12, or a CSS track list such as minmax(0, 1fr) auto. Numeric counts are clamped.
columnsLg
RefOrValue<number | string> - Default
3
Column count or CSS track list at the theme’s lg breakpoint and above.
Composition
Default slot: ComparisonColumn elements. Register defineComparisonTableComponent with Panel, Flex, Grid and SectionHeader, plus the column and feature components you use.