Skip to Content
Urban Cowboy
Components

Room Matcher Page

Step-by-step matcher that collects party, dog and interests before recommending.

RoomMatcherPage hosts the two matching steps and assembles the final RecommendationPreferences for the recommendation layer. The docs instance supplies local callbacks and an imageBaseUrl so its illustration and dog icons resolve under the Pages base path. Submitting does not run a search.

string

Props

PropValuesNotes
criteriaSearchCriteriaOptional stay context
initialPreferencesRecommendationPreferencesPre-fill the steps
onBackcallbackLeave the matcher
onSubmit(preferences) => voidReceives the completed profile
onViewAllRoomscallbackOptional browse escape hatch
imageBaseUrlstringPrefix for illustration and dog icons

Responsive behaviour

The step content keeps a narrow reading column on phones and spreads to two columns at md. Interest and party choices wrap; the illustration scales with its container.

Usage

import { RoomMatcherPage } from '@/components/booking/discovery/RoomMatcherPage';

<RoomMatcherPage onBack={goBack} onSubmit={showRecommendations} imageBaseUrl={basePath} />

View source