HotelSearchBar
Canonical hotel search bar composing LocationAutocomplete, DateRangePicker, and GuestRoomSelector. Presentational only — fires onSearch(value) on valid submit. Brand-token themed, responsive.
Validation
Destination is required. Dates are optional, but if a check-in is set the check-out must also be provided. Errors appear inline below the bar and clear as the user corrects each field.
Click Search without filling in a destination to see inline validation.
Pre-filled value
Pass a fully populated HotelSearchBarValue to render the bar in a pre-filled state — useful for a search results page where the bar reflects the active query.
Props reference
| Prop | Type | Default | Description |
|---|---|---|---|
| brand | KnownBrandId | required | Drives BrandedButton theming |
| value | HotelSearchBarValue | required | Controlled value { destination, dateFrom, dateTo, guests } |
| onSearch | (value: HotelSearchBarValue) => void | required | Called on valid submit — parent owns navigation |
| suggestions | LocationSuggestion[] | — | Suggestion list passed to LocationAutocomplete |
| fetchSuggestions | (query: string) => void | — | Called (debounced) when user types in destination |
| maxRooms | number | 8 | Maximum rooms in GuestRoomSelector |
| maxAdults | number | 8 | Maximum adults per room |
| maxChildren | number | 4 | Maximum children per room |
| maxChildAge | number | 17 | Maximum child age in age selects |
| destinationPlaceholder | string | "Where to?" | Placeholder for the destination input |
| datePlaceholder | string | "Anytime" | Placeholder for the date range picker |
| guestPlaceholder | string | "Guests & rooms" | Placeholder for the guest selector |
| submitLabel | string | "Search" | Label on the submit button |
| disabled | boolean | false | Disables the submit button |
| loading | boolean | false | Renders a spinner + aria-busy on the submit button, blocks onSearch while true |
| className | string | — | Extra classes on the root wrapper |