Two-option comparison
A real either-or decision, with each option stating when it is the wrong choice.
Live preview
Source
This exact file renders the preview above.
components/blocks/sections/comparison/side-by-side.tsx
components/ui/badge.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
Both cards get identical weight, and each states when it is the wrong choice — which is what makes the section trustworthy rather than a disguised recommendation.
- Neither option may be styled as the advanced or premium one.
- The 'not right if' note is the most-read line in the card. Write it carefully.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Two equal cards
- Choose-this-when list
- Not-right-if note
Accessibility
- Equal weight
- Both cards share identical borders, padding and typography.
- Named links
- Each card's action names the option rather than saying 'Learn more'.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All sectionsTwo-audience hero
A fork in the road for products with two genuinely different buyers.
starter3 variantsCompetitive comparison
A three-way comparison against approaches rather than named competitors.
intermediate3 variantsDual-path CTA
Two next steps of equal weight for readers with two intentions.
starter3 variants