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-searchContainer or element for lm chatroom search
lm-chatroom-search-go-back-iconContainer or element for lm chatroom search go back icon
lm-cursor-pointerContainer or element for lm cursor pointer
lm-chatroom-search-inputContainer or element for lm chatroom search input
lm-chatroom-search-input-fieldContainer or element for lm chatroom search input field
lm-chatroom-search-listContainer or element for lm chatroom search list
lm-chatroom-search-list-item lm-cursor-pointerContainer or element for lm chatroom search list item lm cursor pointer
search-chatroom-member-iconContainer or element for search chatroom member icon
search-chatroom-contentContainer or element for search chatroom content
search-chatroom-user-metaContainer or element for search chatroom user meta
search-chatroom-messageContainer or element for search chatroom message

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