Skip to Content
Urban Cowboy
Components

Photo Tour Arrow

Directional control for the room photo carousel, with an inline chevron fallback.

PhotoTourArrow renders a small arrow image rotated for the four cardinal directions. It switches to an inline SVG chevron when chevron is set or when the asset fails to load, so a missing icon never leaves a blank control. Both modes are decorative and hidden from assistive technology; the surrounding button supplies the accessible action.

*
number
boolean
string

Migrated states

The former Arrow, Chevron, Back, Playground, ChevronDirections, AssetVsChevronComparison and Sizes stories are represented in the grid below.

Props

PropValuesNotes
directionup, down, left, rightleft/right rotate the image; up/down select the asset
sizenumberIcon bounding box in pixels
chevronbooleanForce the inline SVG chevron instead of the image asset
imageBaseUrlstringOptional URL prefix for the arrow asset under a base path

Responsive behaviour

The arrow has no layout of its own beyond the requested pixel size. The comparison grid wraps from a single column on phones to multiple columns at sm, so all directions and sizes remain visible without horizontal scrolling.

Usage

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

<PhotoTourArrow direction="right" size={24} />

View source