Pricing 14
A four-card SaaS grid with a real billing switch — the featured Pro card's glow settles from bright to quiet on mount.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Pricing 14
Pricing 14 is a pricing section in the Pricing Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 27, 2026.
- pricing
- four cards
- saas
- billing toggle
- accordion
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: roles switch, radiogroup, radio; aria-label, aria-checked, aria-labelledby.
- HTML elements used: section, details, ul, button, svg.
- Keyboard keys handled: ArrowUp, ArrowDown, ArrowLeft, ArrowRight.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
React + TypeScript + Tailwind CSS
3 files: Pricing14.jsx, Pricing14.types.ts, Pricing14.tailwind.css
- Typed data shapes: BillingPeriod, PricingPlan.
- Uses React hooks: useRef, useState.
- ARIA in the markup: roles switch, radiogroup, radio; aria-label, aria-checked, aria-labelledby.
- HTML elements used: section, details, ul, button, svg.
- Keyboard keys handled: ArrowUp, ArrowDown, ArrowLeft, ArrowRight.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.