Skip to content

ResultCard

Stable

One thing in an answer: a picture, its name, a few facts, a price and one action.

Also known as product card, listing card, item card, search result card

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Hotels in a row

  • Drawing of a small hotel front with four windows
    Free cancellation

    Hôtel des Arts

    Montmartre, Paris

    Rating
    4.6 of 5
    Check-in
    From 3pm
    Walk to metro
    4 min

    €182a night

  • Drawing of a narrow hotel front with four windows

    Le Petit Marais

    Le Marais, Paris

    Rating
    4.4 of 5
    Check-in
    From 2pm
    Walk to metro
    2 min

    €214a night

  • Drawing of a hotel front with a tall door
    Best match

    Rive Gauche Studio

    Saint-Germain, Paris

    Rating
    4.8 of 5
    Check-in
    From 4pm
    Walk to metro
    6 min

    €249a night

Three results with the same fields, laid out with CardRow.

When to use it

Turns the things an answer recommends into something people can compare and act on, instead of a paragraph to read.

Made of: Picture · Name · Short line · Tag · Facts · Price · Action

Use it for

  • Hotels, products, places, people or plans the AI suggests.
  • Results laid out side by side with CardRow.
  • A result that is still arriving.

Not for

Do and avoid

Hôtel des Arts

Montmartre, Paris

Rating
4.6 of 5
Check-in
From 3pm

€182a night

Do. The facts people compare, the price and one clear action.

Hôtel des Arts

A lovely boutique hotel in the heart of Montmartre with charming rooms, friendly staff and easy access to the metro.

Rating
4.6 of 5
Check-in
From 3pm
Check-out
By 11am
Wi-Fi
Free
Pets
Allowed
Floors
5
Avoid. A paragraph, six facts and a vague action make results hard to compare.

Do

  • Give every card in a row the same fields.
  • Keep facts to the ones people compare.
  • Hold the action until the answer is complete.

Avoid

  • Do not put more than one main action on a card.
  • Do not make the whole card a link and also give it a button.
  • Do not invent a price or rating the data does not have.

On a phone

  • The card fills the width; in a CardRow it swipes sideways with the next card peeking in.
  • The price and the action wrap onto two lines when there is no room.

Seen in products

  • OpenUI's library has five card blocks and a Carousel for things in an answer, and every item in a block must have the same structure.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started