Skip to Content
Urban Cowboy
Components

Match Benefits Card

Recommendation card that explains why a room fits and offers compare actions.

MatchBenefitsCard is the explanation surface for a recommended room: it pairs the room summary with ordered reasons and optional save/choose actions. The badge and pointing-hand assets are root-relative, so the docs instance passes imageBaseUrl to resolve them under the Pages base path. No reservation is created by the demo.

*
*
string
boolean
boolean
string

Variants

The compact variant hides actions and adds custom headings and intro copy.

Props

PropValuesNotes
roomMatchRoomSummaryName, headline, blurb and feature labels
reasonsstring[]Ordered explanation bullets
introstringOptional override for the recommendation sentence
reasonHeadings[string, string]Headings for the two reason groups
compactbooleanDenser layout for comparison rows
showActionsbooleanHide save/choose actions in comparison contexts
imageBaseUrlstringPrefix for badge and hand assets

Responsive behaviour

The card uses a narrow reading column on phones and two columns at lg in the comparison grid. Feature chips wrap instead of scrolling horizontally.

Usage

import { MatchBenefitsCard } from '@/components/booking/results/MatchBenefitsCard';

<MatchBenefitsCard room={match} reasons={reasons} imageBaseUrl={basePath} />

View source