Card 08
An accessible selectable card for onboarding and preference flows with clear selected-state hierarchy and keyboard interaction.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Card 08
Card 08 is a card component in the Card Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 22, 2026.
- card
- selectable card
- cards
- selection
- radio
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- HTML elements used: input, label, svg.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px.
React + TypeScript + Tailwind CSS
3 files: Card08.jsx, Card08.types.ts, Card08.tailwind.css
- Configurable through 8 props: name, value, icon, title, description, meta, className, ref.
- Uses React hooks: useId.
- ARIA in the markup: role radio.
- HTML elements used: input, label, svg.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm.