Party Picker

Generic category-driven party composition picker. Configure any set of traveller types via PartyCategory[]. GuestPicker (accommodation) is a thin wrapper over this. Exposes PartyPickerPanel for embedding in sheets or custom layouts.

core/party-picker

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Activity (Adult/Child/Concession), Transfer (Passengers/Bags), and embedded panel examples.

API Reference

PropTypeDescription
categoriesreq
PartyCategory[]Category definitions — each drives a CounterInput row.
valuereq
PartyValueCurrent counts keyed by category ID.
onChangereq
(value: PartyValue) => voidCalled when any count changes.
config
PartyPickerConfigOptional shared cap (maxTotal) and constraint note.
label
stringTrigger label and popover header.
placeholder
stringTrigger placeholder when party is at defaults.
shellVariant
booleanWhen true, renders as a SearchFieldShell trigger.
disabled
booleanDisables the trigger.
open
booleanControlled open state.
onOpenChange
(open: boolean) => voidCalled when the popover open state changes.