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-editor

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Multi-room editor with and without child age collection.

API Reference

PropTypeDescription
roomsreq
RoomAllocation[]Current room allocations.
onChangereq
(rooms: RoomAllocation[]) => voidCalled when any room changes.
maxRooms
numberMaximum number of rooms allowed.
maxAdultsPerRoom
numberMaximum adults per room.
maxChildrenPerRoom
numberMaximum children per room.
requireChildAges
booleanWhen true, shows child age inputs per room.