React js UI example. custom nav pills

React js UI example and template, custom nav pills! . 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: nav

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">
                <div class="row justify-content-center">
                    <div class="col-12 text-center">
                        <div class="section-title mb-4 pb-2">
                            <h4 class="title mb-4">Dashboard Screenshot</h4>
                            <p class="text-muted mx-auto para-desc mb-0">Splash your dream color Bring your home to lively Colors. We make it a priotity to offer flexible services to accomodate your needs</p>
                        </div>
                    </div>
                </div>
                
                <div class="row mt-4 pt-2 align-items-center">
                    <div class="col-lg-3 col-md-4 col-12">
                        <ul class="nav nav-pills nav-justified" id="pills-tab" role="tablist">
                            <li class="nav-item mb-4 pt-2">
                                <a class="nav-link rounded-pill" id="pills-cloud-tab" data-toggle="pill" href="#pills-cloud" role="tab" aria-controls="pills-cloud" aria-selected="false">
                                    <div class="screenshot text-center pt-2 pb-2">
                                        <h4 class="title font-weight-normal mb-0">Marketing Cloud</h4>
                                    </div>
                                </a>
                            </li>
                            
                            <li class="nav-item mb-4 pt-2">
                                <a class="nav-link rounded-pill" id="pills-smart-tab" data-toggle="pill" href="#pills-smart" role="tab" aria-controls="pills-smart" aria-selected="false">
                                    <div class="screenshot text-center pt-2 pb-2">
                                        <h4 class="title font-weight-normal mb-0">Smartest CRM</h4>
                                    </div>
                                </a>
                            </li>
                            
                            <li class="nav-item mb-4 pt-2">
                                <a class="nav-link rounded-pill" id="pills-apps-tab" data-toggle="pill" href="#pills-apps" role="tab" aria-controls="pills-apps" aria-selected="false">
                                    <div class="screenshot text-center pt-2 pb-2">
                                        <h4 class="title font-weight-normal mb-0">Commerce Apps</h4>
                                    </div>
                                </a>
                            </li>

                            <li class="nav-item mb-4 pt-2">
                                <a class="nav-link rounded-pill active" id="pills-intelligence-tab" data-toggle="pill" href="#pills-intelligence" role="tab" aria-controls="pills-intelligence" aria-selected="true">
                                    <div class="screenshot text-center pt-2 pb-2">
                                        <h4 class="title font-weight-normal mb-0">Business Intelligence</h4>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>

                    <div class="col-lg-9 col-md-8 col-12 mt-4 pt-2 mt-sm-0 pt-sm-0">
                        <div class="tab-content" id="pills-tabContent">
                            <div class="tab-pane fade" id="pills-cloud" role="tabpanel" aria-labelledby="pills-cloud-tab">
                                <img src="https://www.bootdey.com/image/800x400/FFB6C1/000000" class="img-fluid" alt=""/>
                            </div>
                            
                            <div class="tab-pane fade" id="pills-smart" role="tabpanel" aria-labelledby="pills-smart-tab">
                                <img src="https://www.bootdey.com/image/800x400/87CEFA/000000" class="img-fluid" alt=""/>
                            </div>

                            <div class="tab-pane fade" id="pills-apps" role="tabpanel" aria-labelledby="pills-apps-tab">
                                <img src="https://www.bootdey.com/image/800x400/FF7F50/000000" class="img-fluid" alt=""/>
                            </div>

                            <div class="tab-pane fade active show" id="pills-intelligence" role="tabpanel" aria-labelledby="pills-intelligence-tab">
                                <img src="https://www.bootdey.com/image/800x400/20B2AA/000000" class="img-fluid" alt=""/>
                            </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;
}

.nav-pills .nav-link {
  color: #2f3c4e !important;
  margin: auto 15px;
  border: 1px solid #e9ecef;
}

.nav-pills .nav-link.active {
  background-color: #f89d36;
  color: #ffffff !important;
  -webkit-box-shadow: 0 0 3px rgba(47, 60, 78, 0.15);
          box-shadow: 0 0 3px rgba(47, 60, 78, 0.15);
}

.nav-pills a .screenshot .title {
  font-size: 18px;
}

Similar snippets

React js template and ui example Dropdown animation with CSS

Dropdown animation with CSS

React js template and ui example home menu blockquote box jquery2dotnet

home menu blockquote box jquery2dotnet

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example profile with data and skills

profile with data and skills

React js template and ui example Chat box

Chat box

React js template and ui example chat app

chat app