Skip to Content
Urban Cowboy
Components

Step Layout

Shared two-column layout for guest, extras and payment booking steps.

StepLayout gives every late-stage booking step a consistent heading, optional back link and a sticky summary column. The docs demo wraps it in the real BookingProvider so the summary renders exactly as it does in the app; the step content is a static placeholder.

Props

PropValuesNotes
titlestringStep heading
subtitlestringOptional supporting line
onBack / backLabelcallback / stringOptional back link
childrenReactNodeMain step content; the summary is rendered by the layout

Responsive behaviour

The summary column moves below the main content on phones and becomes sticky from the lg breakpoint. The wrapper keeps reading width bounded on large screens.

Usage

import { StepLayout } from '@/components/booking/layout/step-layout';

<StepLayout title="Your details" onBack={goBack}>
  <GuestForm />
</StepLayout>

View source