Skip to main content

LMChatroomSearch

LMChatroomSearch renders the chatroom search UI for LikeMinds Chat SDK. It is a standalone component which handles search and listing of the chatroom. It accepts a prop onCloseSearch calling which will close the chatroom search UI.

Props

PropertyTypeDescriptionOptional
onCloseSearchZeroArgVoidReturnsFunction to close the search.

CSS Classnames

ClassnameDescription
lm-chatroom-searchSearch container
lm-chatroom-search-go-back-iconBack button styling
lm-cursor-pointerClickable element styling
lm-chatroom-search-inputSearch input container
lm-chatroom-search-input-fieldSearch input field styling
lm-chatroom-search-listSearch results list container
lm-chatroom-search-list-item lm-cursor-pointerClickable search result item
search-chatroom-member-iconMember icon styling
search-chatroom-contentSearch result content container
search-chatroom-user-metaUser metadata styling
search-chatroom-messageMessage preview styling

Example

To customise the component with their classnames, Open your base css file and override the styles using the classname

.lm-chatroom-search-input-field {
font-size: 18px;
color: "red";
}

Reference

For reference checkout this file