React js UI example. Messages or conversations

React js UI example and template, Messages or conversations! . Take a look at this UI example and see how it can enhance your project. Your can copy or download the code and use it in your project. Don't forget to browse our library of other free React Native templates for even more design and functionality inspiration. Happy coding!
Tags: messages,conversations,inbox,chat,mail

1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:

npx create-react-app my-awesome-project

cd my-awesome-project

npm start

2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:

npm install [email protected] --save

npm start //For start project again

3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:

import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';


function App() {
  
	return (
		<div>
			<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container">
<div class="row message-wrapper rounded shadow mb-20">
    <div class="col-md-4 message-sideleft">
        <div class="panel">
            <div class="panel-heading">
                <div class="pull-left">
                    <h3 class="panel-title">Conversations</h3>
                </div>
                <div class="pull-right">
                    <div class="btn-group">
                        <button type="button" class="btn btn-sm btn-success">All Sources</button>
                        <button type="button" class="btn btn-sm btn-success dropdown-toggle" data-toggle="dropdown">
                            <span class="caret"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <ul class="dropdown-menu pull-right" role="menu">
                            <li><a href="#/"><i class="fa fa-download"></i> Inbox</a></li>
                            <li><a href="#/"><i class="fa fa-upload"></i> Outbox</a></li>
                            <li><a href="#/"><i class="fa fa-trash-o"></i> Trash</a></li>
                            <li class="divider"></li>
                            <li><a href="#/"><i class="fa fa-briefcase"></i> Other</a></li>
                        </ul>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="panel-body no-padding">
                <div class="list-group no-margin list-message">
                    <a href="#/" class="list-group-item">
                        <h4 class="list-group-item-heading">Jeck Joko <small>Yesterday at 15:45</small></h4>
                        <p class="list-group-item-text">
                            Ticket #78: <strong>Problems with custom CSS3</strong>
                        </p>
                        <span class="label label-success pull-right">SOLVED</span>
                        <div class="clearfix"></div>
                    </a>
                    <a href="#/" class="list-group-item active">
                        <h4 class="list-group-item-heading">Toni Miring <small>Sunday at 12:33</small></h4>
                        <p class="list-group-item-text">Ticket #43: <strong>How do i use something</strong></p>
                        <span class="label label-success pull-right rounded">SOLVED</span>
                        <div class="clearfix"></div>
                    </a>
                    <a href="#/" class="list-group-item">
                        <h4 class="list-group-item-heading">Bella Negoro <small>Sunday at 12:33</small></h4>
                        <p class="list-group-item-text">Ticket #15: <strong>Why doesn't my cheese work properly? :(</strong></p>
                        <span class="label label-default pull-right circle">OPEN</span>
                        <div class="clearfix"></div>
                    </a>
                    <a href="#/" class="list-group-item">
                        <h4 class="list-group-item-heading">Daddy Botak <small>Sunday at 12:33</small></h4>
                        <p class="list-group-item-text">Can i have longer on my free trial please?</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-8 message-sideright">
        <div class="panel">
            <div class="panel-heading">
                <div class="media">
                    <a href="mail-compose.html" class="btn btn-danger pull-right rounded"><i class="fa fa-share"></i></a>
                    <a class="pull-left" href="#/">
                        <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Rebecca Cabean" class="img-circle avatar"/>
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading">Rebecca Cabean <small>(Sales Manager)</small></h4>
                        <small>Thursday 5th July 2014-via Intercom</small>
                    </div>
                </div>
            </div>
            <div class="panel-body">
                <p class="lead">
                    RE : Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                </p>
                <hr/>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
                <br/>
                <p>
                    Thanks! <br/>
                    Rebecca.
                </p>
            </div>
        </div>
        <div class="panel">
            <div class="panel-heading">
                <div class="media">
                    <a class="pull-left" href="#/">
                        <img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="sarah tingting" class="img-circle avatar"/>
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading">Sarah Tingting</h4>
                        <small>Thursday 5th July 2014-via Intercom</small>
                    </div>
                </div>
            </div>
            <div class="panel-body">
                <p class="lead">
                    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                </p>
                <hr/>
                <strong>Hi Tol Lee</strong>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
            </div>
        </div>
    </div>
</div>
</div>
		</div>
	);
}
export default App;

4. Now we need to add below code into our my-awesome-project/src/App.css file :

body{margin-top:20px;
background:#eee;
}

/* ========================================================================
 * MESSAGES
 * ======================================================================== */
.message form {
  padding: 6px 15px;
  background-color: #FAFAFA;
  border-bottom: 1px solid #E6EBED;
}
.message form .has-icon .form-control-icon {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: 34px;
  line-height: 33px;
  text-align: center;
  color: #777;
}
.message > a {
  position: relative;
}
.message .indicator {
  text-align: center;
}
.message .indicator .spinner {
  left: 26%;
  width: 200px;
  font-size: 13px;
  line-height: 17px;
  color: #999;
}

.message-wrapper {
  position: relative;
  padding: 0px;
  background-color: #ffffff;
  margin: 0px;
}
.message-wrapper .message-sideleft {
  vertical-align: top !important;
}
.message-wrapper .message-sideleft[class*="col-"] {
  padding-right: 0px;
  padding-left: 0px;
}
.message-wrapper .message-sideright {
  background-color: #f8f8f8;
}
.message-wrapper .message-sideright[class*="col-"] {
  padding: 30px;
}
.message-wrapper .message-sideright .panel {
  border-top: 1px dotted #DDD;
  padding-top: 20px;
}
.message-wrapper .message-sideright .panel:first-child {
  border-top: none;
  padding-top: 0px;
}
.message-wrapper .message-sideright .panel .panel-heading {
  border-bottom: none;
}
.message-wrapper .panel {
  background-color: transparent !important;
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}
.message-wrapper .panel .panel-heading, .message-wrapper .panel .panel-body {
  background-color: transparent !important;
}
.message-wrapper .media .media-body {
  font-weight: 300;
}
.message-wrapper .media .media-heading {
  margin-bottom: 0px;
}
.message-wrapper .media small {
  color: #999999;
  font-weight: 400;
}

.list-message .list-group-item {
  padding: 15px;
  color: #999999 !important;
  border-right: 3px solid #8CC152 !important;
}
.list-message .list-group-item.active {
  background-color: #EEEEEE;
  border-bottom: 1px solid #DDD !important;
}
.list-message .list-group-item.active p {
  color: #999999 !important;
}
.list-message .list-group-item.active:hover, .list-message .list-group-item.active:focus, .list-message .list-group-item.active:active {
  background-color: #EEEEEE;
}
.list-message .list-group-item small {
  font-size: 12px;
}
.list-message .list-group-item .list-group-item-heading {
  color: #999999 !important;
}
.list-message .list-group-item .list-group-item-text {
  margin-bottom: 10px;
}
.list-message .list-group-item:last-child {
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  border-bottom: 1px solid #DDD !important;
}
.avatar{
    width:50px;
    height:50px;
}

Similar snippets

React js template and ui example chat app

chat app

React js template and ui example bs4 email app

bs4 email app

React js template and ui example facebook messenger chat

facebook messenger chat

React js template and ui example bs4 beta view email message

bs4 beta view email message

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example chat app

chat app

React js template and ui example invoice order receipt

invoice order receipt

React js template and ui example user profile bio graph and total sales

user profile bio graph and total sales