Skip to Content
Urban Cowboy
Components

Room Photo Tour

Full-bleed room photo carousel with hotspots, amenities and a details panel.

RoomPhotoTour is the centrepiece of the photo journey: a swipeable image carousel with per-photo amenity hotspots and an expandable detail panel. The docs demo uses a local editorial fixture with two checked-in images; it never reads Mews inventory, price or availability, and choosing a room only updates local text.

*
boolean

Details panel

The former DetailsOpen state is shown below. Hotspots open amenity details without leaving the carousel.

*
boolean

Props

PropValuesNotes
roomJourneyRoomEditorial room data, including images and features
position / countnumberCarousel position and total count supplied by the caller
scorenumberOptional recommendation score for merchandising copy
details / onDetailsboolean / callbackControls the detail panel
cmsHotspotsCmsPhotoHotspotMapOptional CMS hotspots; the demo uses the built-in editorial pins
onChoosecallbackInvoked on the docs-only choice action
currencystringDefaults to USD

Responsive behaviour

The tour fills its container and uses a drag-aware carousel. On narrow screens the controls stack over the image; the detail panel becomes a scrollable sheet. The demo wrapper gives it a full-height surface so both behaviours are visible.

Usage

import { RoomPhotoTour } from '@/journey/RoomPhotoTour';

<RoomPhotoTour
  room={room}
  position={0}
  count={1}
  details={false}
  onDetails={setDetails}
  onChoose={chooseRoom}
/>

View source