React js UI example. icon block

React js UI example and template, icon block! . 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: icon,block

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="row">
        <div class="col-md-9">
            
        	<div class="wp-example">
        		<div class="section-title-wr">
            		<h3 class="section-title left"><span>Icon blocks without background</span></h3>
                </div>
        
                <div class="row mt-40">
                    <div class="col-md-6 col-sm-6">
                        <div class="icon-block icon-block-1">
                            <div class="icon-block-item">
                                <i class="fa fa-list-alt "></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Endless possibilities</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-sm-6 ">
                        <div class="icon-block icon-block-1">
                            <div class="icon-block-item">
                                <i class="fa fa-desktop"></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Over 60 page layouts</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                </div>
        
                <hr/>
                <div class="section-title-wr">
                    <h3 class="section-title left"><span>Icon blocks with background</span></h3>
                </div>
                <div class="row mt-40">
                    <div class="col-md-6 col-sm-6">
                        <div class="icon-block icon-block-2">
                            <div class="icon-block-item base">
                                <i class="fa fa-list-alt "></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Endless possibilities</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-sm-6 ">
                        <div class="icon-block icon-block-2">
                            <div class="icon-block-item base">
                                <i class="fa fa-desktop"></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Over 60 page layouts</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="icon-block icon-block-2">
                            <div class="icon-block-item base-alt">
                                <i class="fa fa-list-alt "></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Endless possibilities</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-sm-6 ">
                        <div class="icon-block icon-block-2">
                            <div class="icon-block-item base-alt">
                                <i class="fa fa-desktop"></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Over 60 page layouts</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                </div>
        
                <hr/>
                <div class="section-title-wr">
                    <h3 class="section-title left"><span>Circled icon blocks with background - Horizontal</span></h3>
                </div>
                <div class="row mt-40">
                    <div class="col-md-6 col-sm-6">
                        <div class="icon-block icon-block-3">
                            <div class="icon-block-item light">
                                <i class="fa fa-list-alt "></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Endless possibilities</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-sm-6 ">
                        <div class="icon-block icon-block-3">
                            <div class="icon-block-item light">
                                <i class="fa fa-desktop"></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Over 60 page layouts</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="icon-block icon-block-3">
                            <div class="icon-block-item dark">
                                <i class="fa fa-list-alt "></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Endless possibilities</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-sm-6 ">
                        <div class="icon-block icon-block-3">
                            <div class="icon-block-item dark">
                                <i class="fa fa-desktop"></i>
                            </div>
                            <div class="icon-block-body">
                                <h4 class="">Over 60 page layouts</h4>
                                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes.</p>
                            </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:#eee;
}
.icon-block {
    margin-bottom: 20px;
}
.icon-block.icon-block-1 .icon-block-item {
    width: 20%;
    display: table-cell;
    vertical-align: top;
    font-size: 64px;
    text-align: center;
    color: #333;
}
.icon-block.icon-block-1 .icon-block-body {
    display: table-cell;
    vertical-align: top;
    padding-left: 15px;
}
.icon-block.icon-block-1 .icon-block-body .title {
    margin-bottom: 5px;
    color: #333;
}
.icon-block.icon-block-1 .icon-block-body p {
    margin: 0;
}
.icon-block.icon-block-2 .icon-block-item {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 2px;
    display: block;
    float: left;
    font-size: 46px;
    text-align: center;
}
.icon-block.icon-block-2 .icon-block-body {
    padding-left: 115px;
}
.icon-block.icon-block-2 .icon-block-body .title {
    margin-bottom: 5px;
    color: #333;
}
.icon-block.icon-block-2 .icon-block-body p {
    margin: 0;
}
.icon-block.icon-block-3 .icon-block-item {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 100px;
    display: block;
    float: left;
    font-size: 46px;
    text-align: center;
    color: #333;
}
.icon-block.icon-block-3 .icon-block-body {
    padding-left: 115px;
}
.icon-block.icon-block-3 .icon-block-body .title {
    margin-bottom: 5px;
    color: #333;
}
.icon-block.icon-block-3 .icon-block-body p {
    margin: 0;
}

.base {
  background: #3498db;
  color: #fff !important;
}

.base-alt {
  background: #9cd70e;
  color: #fff;
}

.light {
  background: #ecf0f1;
  color: #333;
}

.dark {
  background: #131313;
  color: #fff !important;
}

Similar snippets

React js template and ui example dashboard user block

dashboard user block

React js template and ui example image with label

image with label

React js template and ui example block products

block products

React js template and ui example user cards block

user cards block

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example user blog post widget

user blog post widget

React js template and ui example bs4 Profile with dashboard

bs4 Profile with dashboard

React js template and ui example bs4 social about

bs4 social about