Home > TravelSwitch widget
TRAVELSWITCH WIDGET

Searchand redirect

Embed Flight, Hotel, and Curated search widgets on a single page. Results redirect using redirectionDomain.

TravelSwitch widget

Configuration Options

theme.primary
Primary brand color
theme.secondary
Secondary brand color
theme.primaryLight
Light UI primary shade
redirectionDomain
Redirect URL for search results
fontName
Font family for widget UI

Requirements

Node.js 16 or higher
React 17+ (or compatible framework)

Optional SSO User Details

You can optionally pass logged-in user details to the widget using the ssoUser prop. If provided, the user session will be securely forwarded when the user clicks Search and is redirected to the booking application, enabling a seamless single sign-on experience.

ssoUser
ssoUser = {{
  email: "user@example.com",
  firstName: "John",
  lastName: "Doe",
  ts: "2026-01-28T12:28:05Z",
  cc: "+91",
  phone: "9876543210",
}}
Flight Search
Hotel Search
Curated Search