Skip to Content
Urban Cowboy
Components

Search dropdowns

Guest, location and promo panels used by the booking search bar.

These panels are the interactive controls behind SearchBar. Each demo keeps its value in a docs-only harness and reports the last action locally; no offer is validated or applied.

Guests

*

Location

*

Promo

*
ComponentKey propsNotes
SearchBarGuestDropdowninitialCounts, onChange, onCloseAdults/children steppers with accessible labels
SearchBarLocationDropdowninitialValue, onChange, focusOnOpenUses the canonical location ids from DEFAULT_LOCATIONS
SearchBarPromoDropdowninitialValue, onChange, onApply, closeOnApplyonApply is a docs-only callback here

Responsive behaviour

Panels open below their trigger and stay within the viewport on narrow screens. Focus is returned to the trigger on close via the component's own keyboard handling.

Guests source · Location source · Promo source