React js UI example. bs4 Search Results With Users

React js UI example and template, bs4 Search Results With Users! . 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: search,result

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="content">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="search-result-box card-box">
                    <div class="row">
                        <div class="col-md-8 offset-md-2">
                            <div class="pt-3 pb-4">
                                <div class="input-group">
                                    <input type="text" id="" name="" class="form-control" value="Admin Dashboard"/>
                                    <div class="input-group-append">
                                        <button type="button" class="btn waves-effect waves-light btn-custom"><i class="fa fa-search mr-1"></i> Search</button>
                                    </div>
                                </div>
                                <div class="mt-4 text-center">
                                    <h4>Search Results For "Admin Dashboard"</h4></div>
                            </div>
                        </div>
                    </div>
                    
                    <ul class="nav nav-tabs tabs-bordered">
                        <li class="nav-item"><a href="#home" data-toggle="tab" aria-expanded="true" class="nav-link active">All results <span class="badge badge-success ml-1">325</span></a></li>
                        <li class="nav-item"><a href="#users" data-toggle="tab" aria-expanded="false" class="nav-link">Users <span class="badge badge-danger ml-1">89</span></a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="home">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Bootdey.com - Responsive Admin Template</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com</div>
                                        <p class="mb-0 text-muted">Dolor posuere proin blandit accumsan senectus netus nullam curae, ornare laoreet adipiscing luctus mauris adipiscing pretium eget fermentum, tristique lobortis est ut metus lobortis tortor tincidunt himenaeos habitant quis dictumst proin odio sagittis purus mi, nec taciti vestibulum quis in sit varius lorem sit metus mi.</p>
                                    </div>
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Uplon - Responsive Bootstrap 4 Web App Kit</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com/bootstrap-snippets?utf8=%E2%9C%93&q=snippet</div>
                                        <p class="mb-0 text-muted">Dolor posuere proin blandit accumsan senectus netus nullam curae, ornare laoreet adipiscing luctus mauris adipiscing pretium eget fermentum, tristique lobortis est ut metus lobortis tortor tincidunt himenaeos habitant quis dictumst proin odio sagittis purus mi, nec taciti vestibulum quis in sit varius lorem sit metus mi.</p>
                                    </div>
                                    <div class="search-item">
                                        <div class="media"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Generic placeholder image" height="54"/>
                                            <div class="media-body">
                                                <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                                <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                                <p class="mb-0 font-13"><b>Bio:</b>
                                                    <br/><span class="text-muted">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.</span></p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Zircos - Responsive Admin Template</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com/</div>
                                        <p class="mb-0 text-muted">Dolor posuere proin blandit accumsan senectus netus nullam curae, ornare laoreet adipiscing luctus mauris adipiscing pretium eget fermentum, tristique lobortis est ut metus lobortis tortor tincidunt himenaeos habitant quis dictumst proin odio sagittis purus mi, nec taciti vestibulum quis in sit varius lorem sit metus mi.</p>
                                    </div>
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Uplon - Responsive Bootstrap 4 Web App Kit</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com/bootstrap-snippets?utf8=%E2%9C%93&q=snippet</div>
                                        <div class="">
                                            <img src="https://bootdey.com/img/Content/avatar/avatar1.png" height="48" alt="image"/> 
                                            <img src="https://bootdey.com/img/Content/avatar/avatar2.png" height="48" alt="image"/> 
                                            <img src="https://bootdey.com/img/Content/avatar/avatar3.png" height="48" alt="image"/> 
                                            <img src="https://bootdey.com/img/Content/avatar/avatar4.png" height="48" alt="image"/>
                                        </div>
                                    </div>
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Zircos - Responsive Admin Template</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com/</div>
                                        <p class="mb-0 text-muted">Dolor posuere proin blandit accumsan senectus netus nullam curae, ornare laoreet adipiscing luctus mauris adipiscing pretium eget fermentum, tristique lobortis est ut metus lobortis tortor tincidunt himenaeos habitant quis dictumst proin odio sagittis purus mi, nec taciti vestibulum quis in sit varius lorem sit metus mi.</p>
                                    </div>
                                    <div class="search-item">
                                        <h4 class="mb-1"><a href="#/">Uplon - Responsive Bootstrap 4 Web App Kit</a></h4>
                                        <div class="font-13 text-success mb-3">https://www.bootdey.com/bootstrap-snippets?utf8=%E2%9C%93&q=snippet</div>
                                        <p class="mb-0 text-muted">Dolor posuere proin blandit accumsan senectus netus nullam curae, ornare laoreet adipiscing luctus mauris adipiscing pretium eget fermentum, tristique lobortis est ut metus lobortis tortor tincidunt himenaeos habitant quis dictumst proin odio sagittis purus mi, nec taciti vestibulum quis in sit varius lorem sit metus mi.</p>
                                    </div>
                                    <ul class="pagination justify-content-end pagination-split mt-0">
                                        <li class="page-item"><a class="page-link" href="#/" aria-label="Previous"><span aria-hidden="true">«</span> <span class="sr-only">Previous</span></a></li>
                                        <li class="page-item"><a class="page-link" href="#/">1</a></li>
                                        <li class="page-item active"><a class="page-link" href="#/">2</a></li>
                                        <li class="page-item"><a class="page-link" href="#/">3</a></li>
                                        <li class="page-item"><a class="page-link" href="#/">4</a></li>
                                        <li class="page-item"><a class="page-link" href="#/">5</a></li>
                                        <li class="page-item"><a class="page-link" href="#/" aria-label="Next"><span aria-hidden="true">»</span> <span class="sr-only">Next</span></a></li>
                                    </ul>
                                    <div class="clearfix"></div>
                                </div>
                            </div>
                        </div>
                        
                        
                        <div class="tab-pane" id="users">
                            <div class="search-item">
                                <div class="media mt-1"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Generic placeholder image" height="54"/>
                                    <div class="media-body">
                                        <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                        <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                        <p class="mb-0 font-13"><b>Bio:</b>
                                            <br/><span class="text-muted">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.</span></p>
                                    </div>
                                </div>
                            </div>
                            <div class="search-item">
                                <div class="media"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Generic placeholder image" height="54"/>
                                    <div class="media-body">
                                        <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                        <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                        <p class="mb-0 font-13"><b>Bio:</b>
                                            <br/><span class="text-muted">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.</span></p>
                                    </div>
                                </div>
                            </div>
                            <div class="search-item">
                                <div class="media"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="Generic placeholder image" height="54"/>
                                    <div class="media-body">
                                        <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                        <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                        <p class="mb-0 font-13"><b>Bio:</b>
                                            <br/><span class="text-muted">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.</span></p>
                                    </div>
                                </div>
                            </div>
                            <div class="search-item">
                                <div class="media"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="Generic placeholder image" height="54"/>
                                    <div class="media-body">
                                        <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                        <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                        <p class="mb-0 font-13"><b>Bio:</b>
                                            <br/><span class="text-muted">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.</span></p>
                                    </div>
                                </div>
                            </div>
                            <div class="search-item">
                                <div class="media"><img class="d-flex mr-3 rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar5.png" alt="Generic placeholder image" height="54"/>
                                    <div class="media-body">
                                        <h5 class="media-heading mt-0"><a href="#/" class="text-dark">Chadengle</a></h5>
                                        <p class="font-13"><b>Email:</b> <span><a href="#/" class="text-muted">[email protected]</a></span></p>
                                        <p class="mb-0 font-13"><b>Bio:</b>
                                            <br/><span class="text-muted">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.</span></p>
                                    </div>
                                </div>
                            </div>
                            <ul class="pagination justify-content-end pagination-split mt-0">
                                <li class="page-item"><a class="page-link" href="#/" aria-label="Previous"><span aria-hidden="true">«</span> <span class="sr-only">Previous</span></a></li>
                                <li class="page-item"><a class="page-link" href="#/">1</a></li>
                                <li class="page-item active"><a class="page-link" href="#/">2</a></li>
                                <li class="page-item"><a class="page-link" href="#/">3</a></li>
                                <li class="page-item"><a class="page-link" href="#/">4</a></li>
                                <li class="page-item"><a class="page-link" href="#/">5</a></li>
                                <li class="page-item"><a class="page-link" href="#/" aria-label="Next"><span aria-hidden="true">»</span> <span class="sr-only">Next</span></a></li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        
                    </div>
                </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:#dcdcdc;
}
.card-box {
    padding: 20px;
    border-radius: 3px;
    margin-bottom: 30px;
    background-color: #fff;
}
.search-result-box .tab-content {
    padding: 30px 30px 10px 30px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -moz-box-shadow: none
}

.search-result-box .search-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #e3eaef;
    margin-bottom: 20px
}
.text-success {
    color: #0acf97!important;
}
a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
}
.btn-custom {
    background-color: #02c0ce;
    border-color: #02c0ce;
}

.btn-custom, .btn-danger, .btn-info, .btn-inverse, .btn-pink, .btn-primary, .btn-purple, .btn-success, .btn-warning {
    color: #fff!important;
}

Similar snippets

React js template and ui example bs4 search Bar

bs4 search Bar

React js template and ui example bs4 simple search result

bs4 simple search result

React js template and ui example Search Results with image

Search Results with image

React js template and ui example General Search Results

General Search Results

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 white chat

white chat

React js template and ui example Invoice

Invoice