Skip to content

Listing card

A property, rental or venue in a results grid: photo, price, key facts, address and a save toggle, the title is the link.

CSS + mian.js JSON Markdown Registry item

Results grid

Energy C

€520 /month

Studio by the park

Bd. Eroilor 21, Cluj-Napoca

  • 34 m²
  • 1 room
  • 1 bath

Installation

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

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

Prefer to own the files? /r/listing-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-listingsThe results grid.
mn-listingOne listing (an <article>). The title link covers the card.
mn-listing-mediaThe photo area; badges sit on it.
mn-listing-pricePrice with its period or basis (“/month”, “asking”).
mn-listing-factsSize, rooms, baths: a list with units.
mn-listing-saveA toggle button (aria-pressed) above the link.

Accessibility

  • The title is the only link; the save button sits above it with its own name (“Save 2-room flat in Cotroceni”).
  • Facts are a list with units spelled out for screen readers (m² is read as “square metres”).
  • Price includes its basis (“per month”, “asking price”) in text, not colour.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page