RoomSelector
Portal only
Works only inside an ONLYOFFICE Apps portal: it needs the portal's API client, stores and translations, and is not part of the public API.
RoomSelector is a searchable, paginated selector for choosing rooms from the ONLYOFFICE Apps system.
Features
- Live API mode — Fetches rooms from the ONLYOFFICE Apps API with infinite scroll
- Single / multi-select — Controlled by
isMultiSelect - Room type filter — Pass
roomTypeto restrict the list to specific room types - Search — Enable with
withSearch - Third-party rooms — Optionally hide third-party storage rooms via
disableThirdParty - Room creation — Show a create-room button via
withCreate+createDefineRoomLabel - Pre-selection — Pass
selectedItemswithsortSelectedFirstto float already-selected rooms to the top - Header / aside / cancel — Fully composable via
withHeader,useAside,withCancelButton
Default
A basic RoomSelector with default settings.

import RoomSelector from "@onlyoffice/apps-ui-kit/selectors/Room";
<RoomSelector
isMultiSelect={false}
withSearch
withHeader
headerProps={{ headerLabel: "Select Room", onCloseClick: () => setOpen(false) }}
onSubmit={(items) => console.log(items[0])}
/>