SearchBar
Booking search summary with date, guest and offer controls.
SearchBar composes the date, guest and offer selectors with the shared SearchButton.
The demos keep click state in a docs-only harness; they do not call the Mews API or start a booking.
Variants
The variant prop switches between circle and square action buttons.
Loading state
| Prop | Values | Notes |
|---|---|---|
variant | circle, square | Shape of the search action |
dateLabel / dateValue | string | Date selector copy |
guestLabel / guestValue | string | Guest selector copy |
promoLabel / promoValue | string | Offer selector copy |
isLoading | boolean | Loading presentation |
onSearch, onDateClick, onGuestClick, onPromoClick | callbacks | Docs harness records the last action locally |
Responsive behaviour
The selector fields wrap on narrow screens and keep accessible labels. The search action does not shrink below its touch target.
Expanded search panel
SearchBarExpanded is the composite variant that keeps property, dates, guests and promo controls
in one bar. The demo uses initialValues and local callbacks; it does not validate a promo code or
start a search.
| Prop | Values | Notes |
|---|---|---|
variant | circle, square | Search action shape |
initialValues | property, checkInDate, checkOutDate, guests, promoCode | Uncontrolled starting values |
onSectionClick | (section) => void | Reports which dropdown is open (property, dates, guests, promo or null) |
onValuesChange | (values) => void | Reports edited values |
onSearch | (values) => void | Docs harness records the action only |
dropdownPlacement | above, below | Dropdown position relative to the bar |
The individual dropdowns are documented on the Search dropdowns, DateRangePicker,
TravelPartyButton and SearchButton pages.