Skip to content

CardRow

Stable

Results side by side: a grid on wide screens, a swipe row on a phone.

Also known as carousel, card grid, card list, horizontal scroll

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

A row of results

  • 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

Wraps on wide screens, swipes on a phone.

When to use it

Lets people compare a handful of results at a glance, on any screen.

Made of: Row · Card

Use it for

  • Two to eight results of the same kind.
  • Results in a chat answer that must fit a phone.

Not for

  • Many results people filter and sort: use DataTable.
  • Pictures the AI made, to pick from: use VariantGrid.

Do and avoid

  • Personal

    Storage
    100 GB

    $8a month

  • Team

    Storage
    1 TB

    $24a month

Do. Cards of one kind with the same fields, easy to compare.
  • Team plan

    Storage
    1 TB

    $24a month

  • Help article

    How to share a folder

Avoid. A plan next to an article: different kinds in one row cannot be compared.

Do

  • Use it for results of the same kind.
  • Keep to a handful; link to a full list for more.

Avoid

  • Do not mix kinds of results in one row.
  • Do not hide the scroll on a phone; the peeking card shows there is more.

On a phone

  • Cards swipe sideways and snap into place, each at most 85% of the width.
  • The row can be scrolled with the keyboard once it has focus.

Seen in products

  • OpenUI lays out repeated card blocks with a Carousel, and every item in the block has the same structure.

Build your next AI screen with Tattva.

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

Get started