Skip to main content
ALEXY LINK

Card 01

A polished ecommerce product card with clear pricing hierarchy, media treatment, rating metadata, and responsive action states.

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 01

Card 01 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
  • product card
  • cards
  • ecommerce
  • shop

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: aria-pressed, aria-label.
  • HTML elements used: article, button, img, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • The demo imagery is loaded from Unsplash.

React + TypeScript + Tailwind CSS

3 files: Card01.jsx, Card01.types.ts, Card01.tailwind.css

  • Configurable through 15 props: productName, category, price, previousPrice, rating, badge, imageSrc, imageAlt, href, onViewProduct and 5 more.
  • Uses React hooks: useState.
  • ARIA in the markup: aria-pressed, aria-label.
  • HTML elements used: article, button, img, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • The demo imagery is loaded from Unsplash.
View all Card Components (10)