Customizing React UI
Swap out MinChat React UI comnponents with your own.
import React from 'react';
import { MinChatUI } from '@minchat/reactui';
function App() {
return (
<MinChatUI
user={{username: "john", name: "John"}}
apiKey="AABBCCDDEEFFGGHHIIJJKKLL0"
// Customize functionality
showAttachButton={false}
showSendButton={false}
disableInput={true}
// Customize UI Components
height='100vh'
themeColor='#6ea9d7'
renderChatList={({connectedUser, chats, loading, selectedChat, paginate, openChat, isMobile}) => <div></div> }
renderChatItem={({chat, isMobile}) => <div></div> }
renderEmptyChats={({isMobile}) => <div></div> }
renderLoader={({isMobile}) => <div></div> }
renderMessageList={({connectedUser, messages, loading, paginate, typingUser, isMobile}) => <div></div> }
renderEmptyMessages={({isMobile}) => <div></div> }
renderInput={({sendMessage, sendFile, inputProps, isMobile}) => <input {...inputProps} /> }
renderMessageListHeader={({heading, clearMessageList, lastActive, isMobile}) => <div></div> }
renderIsTyping={({user, isMobile}) => <div></div> }
/>
);
}
export default App;Functionality Customization
Hide File Attachment Button
Hide Send Button
Disable Message Input
UI Customization
Height
Theme
Render Chat List

Property
Type
Description
Render Chat Item

Property
Type
Description
Render Empty Chats

Property
Type
Description
Render Loader

Property
Type
Description
Render Message List

Property
Type
Description
Render Empty Messages

Property
Type
Description
Render Input

Property
Type
Description
Render Message List Header

Property
Type
Description
Render Is Typing

Property
Type
Description
Last updated