React js UI example. bs4 beta user list with badges

React js UI example and template, bs4 beta user list with badges! . 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: users,list,badges,user-list

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>
			<div class="container bootdey">
<div class="row">
    <div class="col">
        <div class="user-widget-2">
            <ul class="list-unstyled">
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
                    <div class="media-body">
                        <h5>Lucas smith</h5>
                        <p>Apple, Inc.</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span><span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-success"></i></li>
                <li class="media">
                <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
                    <div class="media-body">
                        <h5>Janet Abshire</h5>
                        <p>Pinterest</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-info"></i></li>
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt=""/>
                    <div class="media-body">
                        <h5>Lucas Koch</h5>
                        <p>Reddit</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-success"></i></li>
                <li class="media">
                <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt=""/>
                    <div class="media-body">
                        <h5>Gladys Schuster</h5>
                        <p>Coursera</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-warning"></i></li>
                <li class="media"><img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt=""/>
                    <div class="media-body">
                        <h5>George Clinton</h5>
                        <p>Facebook</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-success"></i></li>
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt=""/>
                    <div class="media-body">
                        <h5>Jennifer Weber</h5>
                        <p>Lyft</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span><span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span><span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-info"></i></li>
                <li class="media">
                <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
                    <div class="media-body">
                        <h5>Thomas Lee</h5>
                        <p>Quora</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-success"></i></li>
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
                    <div class="media-body">
                        <h5>Courtney Dickens</h5>
                        <p>Yelp</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-danger"></i></li>
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""/>
                    <div class="media-body">
                        <h5>James Smith</h5>
                        <p>Apple, Inc.</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-primary"></i></li>
                <li class="media">
                    <img class="rounded-circle d-flex align-self-center" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
                    <div class="media-body">
                        <h5>Clorinda Murphy</h5>
                        <p>Tinder</p>
                        <p><span class="badge badge-outline badge-sm badge-info badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-primary badge-pill">sed</span>
                        <span class="badge badge-outline badge-sm badge-danger badge-pill">voluptatem</span></p>
                    </div><i class="d-flex align-self-center fa fa-dot-circle-o color-warning"></i></li>
            </ul>
        </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;
}

.user-widget-2 .media {
    margin-bottom: 20px;
}

.user-widget-2 h5 {
    font-size: 0.9375rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.user-widget-2 p {
    font-size: 0.8125rem;
    margin-bottom: 10px;
}

.user-widget-2 p .badge {
    margin-right: 10px;
}

.user-widget-2 i {
    margin-left: 20px;
    margin-right: 20px;
}

.user-widget-2 .rounded-circle {
    border: 3px solid #fff;
    height: 50px;
    width: 50px;
    -webkit-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    margin-right: 20px;
}

.sample-badges .badge {
    margin-right: 10px;
}

.badge {
    border-radius: 8px;
    border: 0;
    font-size: 0.75rem;
    text-align: center;
    line-height: 0.8;
    padding: 8px 12px;
    font-weight: normal;
}

.badge.badge-sm {
    font-size: 0.625rem;
    line-height: 0.6;
}

.badge.badge-lg {
    font-size: 0.875rem;
    line-height: 1;
}

.badge.badge-rounded {
    padding: 0;
    height: 24px;
    width: 24px;
    line-height: 24px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

.badge.badge-rounded.badge-sm {
    height: 18px;
    width: 18px;
    line-height: 18px;
    border-radius: 50%;
}

.badge.badge-rounded.badge-sm.badge-outline {
    line-height: 16px;
}

.badge.badge-rounded.badge-lg {
    height: 30px;
    width: 30px;
    line-height: 30px;
    border-radius: 50%;
}

.badge.badge-rounded.badge-lg.badge-outline {
    line-height: 28px;
}

.badge.badge-light:not(.badge-outline) {
    background-color: #ffffff;
    color: #fff;
}

.badge.badge-outline.badge-light {
    border: 1px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
}

.badge.badge-dark:not(.badge-outline) {
    background-color: #212121;
    color: #fff;
}

.badge.badge-outline.badge-dark {
    border: 1px solid #212121;
    background-color: transparent;
    color: #212121;
}

.badge.badge-default:not(.badge-outline) {
    background-color: #212121;
    color: #fff;
}

.badge.badge-outline.badge-default {
    border: 1px solid #212121;
    background-color: transparent;
    color: #212121;
}

.badge.badge-primary:not(.badge-outline) {
    background-color: #303f9f;
    color: #fff;
}

.badge.badge-outline.badge-primary {
    border: 1px solid #303f9f;
    background-color: transparent;
    color: #303f9f;
}

.badge.badge-secondary:not(.badge-outline) {
    background-color: #7b1fa2;
    color: #fff;
}

.badge.badge-outline.badge-secondary {
    border: 1px solid #7b1fa2;
    background-color: transparent;
    color: #7b1fa2;
}

.badge.badge-info:not(.badge-outline) {
    background-color: #0288d1;
    color: #fff;
}

.badge.badge-outline.badge-info {
    border: 1px solid #0288d1;
    background-color: transparent;
    color: #0288d1;
}

.badge.badge-success:not(.badge-outline) {
    background-color: #388e3c;
    color: #fff;
}

.badge.badge-outline.badge-success {
    border: 1px solid #388e3c;
    background-color: transparent;
    color: #388e3c;
}

.badge.badge-warning:not(.badge-outline) {
    background-color: #ffa000;
    color: #fff;
}

.badge.badge-outline.badge-warning {
    border: 1px solid #ffa000;
    background-color: transparent;
    color: #ffa000;
}

.badge.badge-danger:not(.badge-outline) {
    background-color: #d32f2f;
    color: #fff;
}

.badge.badge-outline.badge-danger {
    border: 1px solid #d32f2f;
    background-color: transparent;
    color: #d32f2f;
}

Similar snippets

React js template and ui example project progress list

project progress list

React js template and ui example list with description

list with description

React js template and ui example Products View List

Products View List

React js template and ui example bs4 crud users

bs4 crud users

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example bs4 card widget

bs4 card widget

React js template and ui example login with overlay image

login with overlay image

React js template and ui example table user list

table user list