Skip to Content
Urban Cowboy
Components

Focus amenity family

Photo hotspot pin, state controls, detail card and amenity rail.

The Focus Amenity family renders CMS-backed photo hotspots. FocusAmenity is the map pin; the action, count, card and icon components are its state primitives. All demos keep selection and rail state local — they do not change booking state or write amenities.

Pin states

PropValuesNotes
stateDefault, Hover, Active, Inactive, DisabledFigma design state
iconTourIconOne of the booking-engine icon keys
count, totalCountnumber/stringBadge count and sequential position
title, descriptionstringDetail-card copy
onSelect, onPreviousAmenity, onNextAmenitycallbacksDocs harness records clicks only

Primitives

ComponentKey propsNotes
FocusAmenityActionstate (Default, Hover, Active), tone+/- control badge
FocusAmenityCountcount, state, toneSequential pin number
FocusAmenityCardheadline, descriptionExpanded detail card
AmenityIconname, state, group, sizeValidates names against the checked-in icon registry; never injects SVG markup

Amenity rail

SideBarFocusAmenity takes amenities: SideFocusAmenityItem[] plus open/onOpenChange; the demo uses two local items and a toggle button.

Responsive behaviour

Pins keep a fixed touch target; the state grid wraps on narrow screens and the rail collapses to a control rather than overlaying content.

Pin source · Icon source · Rail source