Skip to content

Product card

Products in a shop grid: image, name, variant, price and a badge, the whole card is one link.

Products

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/product-card.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-productsThe grid (a <ul>).
mn-productOne product: mn-media, mn-product-name (with the link), mn-product-meta, mn-product-price.
mn-product-price sA crossed-out old price.

Accessibility

  • Only the name is a link, stretched over the card, so each product is announced once.
  • Say “Sale” and the old price in text, not only with a strike-through.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page