Chat
Bootstrap Chat
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a huge discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
upgrade with discount
Bootstrap chat is a component dedicated to text-based communication between two or more users in real-time. You can build it with a conversation list sidebar.
To use chat you need to include some CSS code. You can find it in addons-pro
in the CSS folder.
<!-- Chat CSS -->
<link href="css/addons-pro/chat.css" rel="stylesheet">
<!-- Chat CSS - minified-->
<link href="css/addons-pro/chat.min.css" rel="stylesheet">
Basic chat MDB Pro component
<div class="card grey lighten-3 chat-room">
<div class="card-body">
<!-- Grid row -->
<div class="row px-lg-2 px-2">
<!-- Grid column -->
<div class="col-md-6 col-xl-4 px-0">
<h6 class="font-weight-bold mb-3 text-center text-lg-left">Member</h6>
<div class="white z-depth-1 px-3 pt-3 pb-0">
<ul class="list-unstyled friend-list">
<li class="active grey lighten-3 p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-8.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>John Doe</strong>
<p class="last-message text-muted">Hello, Are you there?</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Just now</p>
<span class="badge badge-danger float-right">1</span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-1.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Danny Smith</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-2.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Alex Steward</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-3.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Ashley Olsen</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-4.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Kate Moss</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Lara Croft</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Brad Pitt</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-check" aria-hidden="true"></i></span>
</div>
</a>
</li>
</ul>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-6 col-xl-8 pl-md-3 px-lg-auto px-0">
<div class="chat-message">
<ul class="list-unstyled chat">
<li class="d-flex justify-content-between mb-4">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-lg-3 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="d-flex justify-content-between mb-4">
<div class="chat-body white p-3 z-depth-1">
<div class="header">
<strong class="primary-font">Lara Croft</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 13 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium.
</p>
</div>
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle mr-0 ml-3 z-depth-1">
</li>
<li class="d-flex justify-content-between mb-4 pb-3">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-lg-3 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="white">
<div class="form-group basic-textarea">
<textarea class="form-control pl-2 my-0" id="exampleFormControlTextarea2" rows="3" placeholder="Type your message here..."></textarea>
</div>
</li>
<button type="button" class="btn btn-info btn-rounded btn-sm waves-effect waves-light float-right">Send</button>
</ul>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
</div>
Colorful background chat MDB Pro component
<div class="card purple lighten-4 chat-room">
<div class="card-body">
<!-- Grid row -->
<div class="row px-2">
<!-- Grid column -->
<div class="col-md-6 col-xl-8 pr-md-4 px-lg-auto px-0">
<div class="chat-message">
<ul class="list-unstyled chat">
<li class="d-flex justify-content-between mb-4">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="d-flex justify-content-between mb-4">
<div class="chat-body white p-3 z-depth-1">
<div class="header">
<strong class="primary-font">Lara Croft</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 13 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium.
</p>
</div>
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle mr-0 ml-3 z-depth-1">
</li>
<li class="d-flex justify-content-between mb-4 pb-3">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="white">
<div class="form-group basic-textarea">
<textarea class="form-control pl-2 my-0" id="exampleFormControlTextarea2" rows="3" placeholder="Type your message here..."></textarea>
</div>
</li>
<button type="button" class="btn btn-deep-purple btn-rounded btn-sm waves-effect waves-light float-right">Send</button>
</ul>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-6 col-xl-4 px-0">
<h6 class="font-weight-bold mb-3 text-center text-lg-left">Member</h6>
<div class="white z-depth-1 px-3 pt-3 pb-0">
<ul class="list-unstyled friend-list">
<li class="active grey lighten-3 p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-8.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>John Doe</strong>
<p class="last-message text-muted">Hello, Are you there?</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Just now</p>
<span class="badge badge-danger float-right">1</span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-1.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Danny Smith</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-2.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Alex Steward</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-3.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Ashley Olsen</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-4.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Kate Moss</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Lara Croft</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Brad Pitt</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-check" aria-hidden="true"></i></span>
</div>
</a>
</li>
</ul>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
</div>
Gradient chat with scrollbar MDB Pro component
Member
<div class="card rare-wind-gradient chat-room">
<div class="card-body">
<!-- Grid row -->
<div class="row px-lg-2 px-2">
<!-- Grid column -->
<div class="col-md-6 col-xl-4 px-0">
<h6 class="font-weight-bold mb-3 text-center text-lg-left">Member</h6>
<div class="white z-depth-1 px-2 pt-3 pb-0 members-panel-1 scrollbar-light-blue">
<ul class="list-unstyled friend-list">
<li class="active grey lighten-3 p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-8.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>John Doe</strong>
<p class="last-message text-muted">Hello, Are you there?</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Just now</p>
<span class="badge badge-danger float-right">1</span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-1.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Danny Smith</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-2.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Alex Steward</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-3.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Ashley Olsen</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-4.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Kate Moss</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Lara Croft</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Brad Pitt</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">5 min ago</p>
<span class="text-muted float-right"><i class="fas fa-check" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/img(3).webp.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Ken Ditto</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
<li class="p-2">
<a href="#" class="d-flex justify-content-between">
<img src="https://mdbootstrap.com/img/Photos/Avatars/img(2).webp.webp" alt="avatar" class="avatar rounded-circle d-flex align-self-center mr-2 z-depth-1">
<div class="text-small">
<strong>Marta Wozniak</strong>
<p class="last-message text-muted">Lorem ipsum dolor sit.</p>
</div>
<div class="chat-footer">
<p class="text-smaller text-muted mb-0">Yesterday</p>
<span class="text-muted float-right"><i class="fas fa-mail-reply" aria-hidden="true"></i></span>
</div>
</a>
</li>
</ul>
</div>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-6 col-xl-8 pl-md-3 px-lg-auto px-0">
<div class="chat-message">
<ul class="list-unstyled chat-1 scrollbar-light-blue">
<li class="d-flex justify-content-between mb-4">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-lg-3 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="d-flex justify-content-between mb-4">
<div class="chat-body white p-3 z-depth-1">
<div class="header">
<strong class="primary-font">Lara Croft</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 13 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium.
</p>
</div>
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle mr-0 ml-3 z-depth-1">
</li>
<li class="d-flex justify-content-between mb-4">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-lg-3 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
<li class="d-flex justify-content-between mb-4">
<div class="chat-body white p-3 z-depth-1">
<div class="header">
<strong class="primary-font">Lara Croft</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 13 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium.
</p>
</div>
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-5.webp" alt="avatar" class="avatar rounded-circle mr-0 ml-3 z-depth-1">
</li>
<li class="d-flex justify-content-between mb-4 pb-3">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-lg-3 ml-0 z-depth-1">
<div class="chat-body white p-3 ml-2 z-depth-1">
<div class="header">
<strong class="primary-font">Brad Pitt</strong>
<small class="pull-right text-muted"><i class="far fa-clock"></i> 12 mins ago</small>
</div>
<hr class="w-100">
<p class="mb-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
</p>
</div>
</li>
</ul>
<div class="white">
<div class="form-group basic-textarea">
<textarea class="form-control pl-2 my-0" id="exampleFormControlTextarea2" rows="3" placeholder="Type your message here..."></textarea>
</div>
</div>
<button type="button" class="btn btn-outline-pink btn-rounded btn-sm waves-effect waves-dark float-right">Send</button>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
</div>
.card.chat-room .members-panel-1,
.card.chat-room .chat-1 {
position: relative;
overflow-y: scroll;
}
.card.chat-room .members-panel-1 {
height: 570px;
}
.card.chat-room .chat-1 {
height: 495px;
}
.card.chat-room .friend-list li {
border-bottom: 1px solid #e0e0e0;
}
.card.chat-room .friend-list li:last-of-type {
border-bottom: none;
}
.scrollbar-light-blue::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
background-color: #F5F5F5;
border-radius: 10px;
}
.scrollbar-light-blue::-webkit-scrollbar {
width: 12px;
background-color: #F5F5F5;
}
.scrollbar-light-blue::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
background-color: #82B1FF;
}
.rare-wind-gradient {
background-image: -webkit-gradient(linear, left bottom, left top, from(#a8edea), to(#fed6e3));
background-image: -webkit-linear-gradient(bottom, #a8edea 0%, #fed6e3 100%);
background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
}
Small chat MDB Pro component
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-dark unique-color">
<!-- Navbar brand -->
<a class="navbar-brand" href="#">Navbar</a>
<!-- Collapse button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#basicExampleNav"
aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="basicExampleNav">
<!-- Links -->
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link font-weight-bold" href="#" id="chat">Chat</a>
</li>
</ul>
<!-- Links -->
<form class="form-inline">
<div class="md-form my-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
</div>
</form>
</div>
<!-- Collapsible content -->
</nav>
<!--/.Navbar-->
<div class="container mt-5">
<!-- Grid row -->
<div class="row d-flex flex-row-reverse">
<!-- Grid column -->
<div class="col-md-6 mb-4 d-flex flex-row-reverse">
<div class="card chat-room small-chat wide" id="myForm">
<div class="card-header white d-flex justify-content-between p-2" id="toggle" style="cursor: pointer;">
<div class="heading d-flex justify-content-start">
<div class="profile-photo">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-0">
<span class="state"></span>
</div>
<div class="data">
<p class="name mb-0"><strong>John Smith</strong></p>
<p class="activity text-muted mb-0">Active now</p>
</div>
</div>
<div class="icons grey-text">
<a class="feature"><i class="fas fa-video mr-2"></i></a>
<a class="feature"><i class="fas fa-phone mr-2"></i></a>
<a class="feature"><i class="fas fa-cog mr-2"></i></a>
<a id="closeButton"><i class="fas fa-times mr-2"></i></a>
</div>
</div>
<div class="my-custom-scrollbar" id="message">
<div class="card-body p-3">
<div class="chat-message">
<div class="media mb-3">
<img class="d-flex rounded mr-2" src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="Generic placeholder image">
<div class="media-body">
<p class="my-0">You're friends on Facebook</p>
<p class="mb-0 text-muted">Web Designer at MDBootstrap</p>
<p class="mb-0 text-muted">Lives in Paris</p>
</div>
</div>
<div class="card bg-primary rounded w-75 float-right z-depth-0 mb-1">
<div class="card-body p-2">
<p class="card-text text-white">Lorem ipsum dolor sit amet consectetur adipisicing elit voluptatem cum eum tempore.</p>
</div>
</div>
<div class="card bg-primary rounded w-50 float-right z-depth-0 mb-2">
<div class="card-body p-2">
<p class="card-text text-white">Rem suscipit lorum repellendus ditiis?</p>
</div>
</div>
<div class="card bg-light rounded w-75 z-depth-0 mb-1 message-text">
<div class="card-body p-2">
<p class="card-text black-text">Nostrum minima cupiditate assumenda, atque cumque hic voluptatibus at corporis maxime quam harum.</p>
</div>
</div>
<div class="d-flex justify-content-start">
<div class="profile-photo message-photo">
<img src="https://mdbootstrap.com/img/Photos/Avatars/avatar-6.webp" alt="avatar" class="avatar rounded-circle mr-2 ml-0">
<span class="state"></span>
</div>
<div class="card bg-light rounded w-75 z-depth-0 mb-2">
<div class="card-body p-2">
<p class="card-text black-text">Qui animi molestiae autem nihil optio recusandae nisi sit ab quo est.</p>
</div>
</div>
</div>
<div class="card bg-primary rounded w-75 float-right z-depth-0 mb-1 last">
<div class="card-body p-2">
<p class="card-text text-white">Maxime nostrum ut blanditiis a quod quam, quidem deleniti?</p>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-muted white pt-1 pb-2 px-3">
<input type="text" id="exampleForm2" class="form-control" placeholder="Type a message...">
<div>
<a><i class="far fa-file-image mr-2"></i></a>
<a><i class="far fa-laugh mr-2"></i></a>
<a><i class="fas fa-gamepad mr-2"></i></a>
<a><i class="fas fa-paperclip mr-2"></i></a>
<a><i class="fas fa-camera mr-2"></i></a>
<a><i class="fas fa-thumbs-up float-right"></i></a>
</div>
</div>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>