Room Occupancy Editor
Multi-room occupancy allocation editor for accommodation search. One card per room with adults/children/child-age CounterInput rows. Supports add/remove rooms.
core/room-occupancy-editorInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default
Multi-room editor with and without child age collection.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
roomsreq | RoomAllocation[] | — | Current room allocations. |
onChangereq | (rooms: RoomAllocation[]) => void | — | Called when any room changes. |
maxRooms | number | 8 | Maximum number of rooms allowed. |
maxAdultsPerRoom | number | 4 | Maximum adults per room. |
maxChildrenPerRoom | number | 4 | Maximum children per room. |
requireChildAges | boolean | false | When true, shows child age inputs per room. |