Measures the width an element has beside another in a shared row, for the presence avatars in the feed's header (PresenceRow).

Functions

f
useRoomBeside(
el: HTMLElement | null,
unnamed 1: RoomBesideOptions
): number | null

Returns the width el has to itself in a row it shares with an element that comes first, such as the tabs that leave room for the presence avatars. The first element counts at its content's natural width, since that depends on the theme's fonts and the locale, and the row's gap is taken off too. It returns null until measured.

Interfaces

I
RoomBesideOptions

Passed to useRoomBeside by PresenceRow, from its own props. Without both selectors, the hook measures nothing and returns null.