React js UI example. profile tab widget

React js UI example and template, profile tab widget! . 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: profile,tab,widget,social

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 bootstrap snippets bootdey">
    <div class="col-md-6">
        <div class="wdgt-profile">
            <div class="profile">
                <img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
                <div class="profile-social">
                    <a href="#/"><i class="fa fa-pinterest"></i></a>
                    <a href="#/"><i class="fa fa-twitter"></i></a>
                    <a href="#/"><i class="fa fa-facebook"></i></a>
                </div>
                <ul class="profile-tab">
                    <li><a href="#/"><i class="fa fa-camera"></i>Photo</a></li>
                    <li class="active"><a href="#/"><i class="fa fa-user"></i>Profile</a></li>
                    <li><a href="#/"><i class="fa fa-music"></i> Music</a></li>
                    <li><a href="#/"><i class="fa fa-comments"></i>Comments</a></li>
                </ul>
            </div>
            <div class="profile-info">
                <h5>Name or description</h5>
                <span>Creative Designer</span>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="wdgt-profile">
            <div class="profile">
                <img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt=""/>
                <div class="profile-social">
                    <a href="#/"><i class="fa fa-pinterest"></i></a>
                    <a href="#/"><i class="fa fa-twitter"></i></a>
                    <a href="#/"><i class="fa fa-facebook"></i></a>
                </div>
                <ul class="profile-tab">
                    <li><a href="#/"><i class="fa fa-camera"></i>Photo</a></li>
                    <li class="active"><a href="#/"><i class="fa fa-user"></i>Profile</a></li>
                    <li><a href="#/"><i class="fa fa-music"></i> Music</a></li>
                    <li><a href="#/"><i class="fa fa-comments"></i>Comments</a></li>
                </ul>
            </div>
            <div class="profile-info">
                <h5>Name or description</h5>
                <span>Creative Designer</span>
            </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;
}

.wdgt-profile {
  position: relative;
}

.wdgt-profile .profile img {
  width: 100%;
  height: 380px;
  border-radius: 4px 4px 0 0;
  -webkit-border-radius: 4px 4px 0 0;
}

.wdgt-profile .profile-social {
  position: absolute;
  left: 20px;
  top: 20px;
}

.wdgt-profile .profile-social a {
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  display: inline-block;
  font-size: 12px;
  height: 28px;
  line-height: 24px;
  margin: 0 1px;
  text-align: center;
  width: 28px;
}

.wdgt-profile .profile-tab {
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  list-style-type: none;
  padding: 0;
  height: 100%;
  background: rgba(0,0,0,.5);
  margin: 0;
  border-radius: 0 4px 4px 0;
  -webkit-border-radius: 0 4px 4px 0;
}

.wdgt-profile .profile-tab li {
  text-align: center;
  max-width: 100%;
}

.wdgt-profile .profile-tab li a {
  padding: 20px 0;
  display: block;
  text-decoration: none;
  color: #fff;
}

.wdgt-profile .profile-tab li a i {
  display: block;
  font-size: 30px;
  margin-bottom: 5px;
}

.wdgt-profile .profile-info {
  background: #424F63;
  position: relative;
  z-index: 10;
  padding: 20px;
  border-radius: 0 0 4px 4px;
  -webkit-border-radius: 0 0 4px 4px;
}

.wdgt-profile .profile-info h5 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.wdgt-profile .profile-info span {
  font-size: 11px;
  color: #fff;
}

Similar snippets

React js template and ui example shop user profile with ticket

shop user profile with ticket

React js template and ui example Social network post image

Social network post image

React js template and ui example about me profile

about me profile

React js template and ui example bs4 profile with messages and edit

bs4 profile with messages and edit

React js template and ui example dark invoice

dark invoice

React js template and ui example Shop Order Tracking

Shop Order Tracking

React js template and ui example bs4 beta friend list

bs4 beta friend list

React js template and ui example Project Detail

Project Detail