
Many trendy internet designs require a responsive footer that appears good and works nicely on all units. A responsive footer routinely adjusts its structure and content material to suit the display dimension of the machine it’s being considered on.
Learn to create a responsive footer in React.js utilizing the simple-react-footer module.
The straightforward-react-footer module is a light-weight and easy-to-use library that means that you can create a responsive footer in React.js. It offers a set of equipment that you should use to customise the looks and performance of your footer.
Earlier than we dive into making a footer with the simple-react-footer module, let’s take a fast have a look at a few of its key options:
- customizable structure: The straightforward-react-footer module means that you can outline the variety of columns in your footer, in addition to the content material of every column.
- Responsive Design: The footer routinely adjusts its structure to suit the display dimension of the machine it’s being considered on.
- Customizable look: The straightforward-react-footer module offers a spread of equipment that you should use to customise the looks of your footer, such because the background shade, font shade, and icon shade.
Now that you’ve a fundamental understanding of the simple-react-footer module, let’s have a look at how you should use it to create a footer in React.js.
Begin by making a easy React app. You may then use the simple-react-footer module to create a footer, like on this instance:
import React from 'react';
import SimpleReactFooter from 'simple-react-footer';
const Footer = () => {
const description = “Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim advert minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.”;
const title = “Lorem Ipsum”;
const columns = [{
title: “Column 1”,
resources: [{
name: “Item 1”,
link: “/item1”
},{
name: “Item 2”,
link: “/item2”
},{
name: “Item 3”,
link: “/item3”
},{
name: “Item 4”,
link: “/item4”
}]
},{
title: “Column 2”,
sources: [{
name: “Item 5”,
link: “/item5”
},{
name: “Item 6”,
link: “/item6”
}]
},{
title: “Column 3”,
sources: [{
name: “Item 7”,
link: “/item7”
},{
name: “Item 8”,
link: “/item8”
}]
}];
return <SimpleReactFooter
description={description}
title={title}
columns={columns}
/>;
}
export default Footer;
That code will create a footer that can seem like this:

This instance imports the SimpleReactFooter part and defines a practical part named Footer. Contained in the footer part, use the SimpleReactFooter part, passing it three props: title, description, and columns.
The module shows the title prop on the high of the footer. Under that, present the title prop. Lastly, the prop column is an array of objects that outline the content material of the columns within the footer.
Customization of parts with totally different equipment
Along with the title and outline props, the simple-react-footer module offers a number of props that you may go to the part. You should use them to customise the looks and performance of your footer.
Here’s a checklist of all of the plugins accessible within the simple-react-footer module:
- title: The title of the footer.
- description: A quick description of the footer.
- columns: An array of objects that defines the content material of the columns within the footer. Every object will need to have a title property that specifies the column title, and a useful resource property that’s an array of objects, every of which represents a useful resource within the column. Every useful resource object will need to have a reputation property that specifies the title of the useful resource and a hyperlink property that specifies the hyperlink to the useful resource.
- Linkedin: The corporate’s or group’s LinkedIn deal with.
- Fb: The enterprise or group’s Fb deal with.
- twitter: The corporate’s or group’s Twitter deal with.
- instagram: The enterprise or group’s Instagram deal with.
- Youtube: The corporate’s or group’s YouTube deal with.
- curiosity: The enterprise or group’s Pinterest ID.
- Copyright: The copyright textual content for the footer.
- iconColor: The colour of the social media icons within the footer.
- background shade: The background shade of the footer.
- fontColor: The font shade of the footer.
- copyright Colour: The font shade of the copyright textual content within the footer.
Here is an instance of how you should use all of the plugins accessible within the simple-react-footer module to create a customized footer in React.js:
import React from 'react';
import SimpleReactFooter from 'simple-react-footer';
const Footer = () => {
const description = “Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim advert minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.”;
const title = “Lorem Ipsum”;
const columns = [{
title: “Column 1”,
resources: [{
name: “Item 1”,
link: “/item1”
},{
name: “Item 2”,
link: “/item2”
},{
name: “Item 3”,
link: “/item3”
},{
name: “Item 4”,
link: “/item4”
}]
},{
title: “Column 2”,
sources: [{
name: “Item 5”,
link: “/item5”
},{
name: “Item 6”,
link: “/item6”
}]
},{
title: “Column 3”,
sources: [{
name: “Item 7”,
link: “/item7”
},{
name: “Item 8”,
link: “/item8”
}]
}];
return <SimpleReactFooter
description={description}
title={title}
columns={columns}
linkedin=”lorem_ipsum_on_linkedin”
fb=”lorem_ipsum_on_fb”
twitter=”lorem_ipsum_on_twitter”
instagram=”lorem_ipsum_live”
youtube=”UCFt6TSF464J8K82xeA?”
pinterest=”lorem_ipsum_collections”
copyright=”black”
iconColor=”black”
backgroundColor=”lightgrey”
fontColor=”black”
copyrightColor=”darkgrey”
/>;
}
export default Footer;
This instance makes use of all of the props accessible within the simple-react-footer module to create a customized footer. The code will create a footer with totally different colours and varied social media icons:

The linkedin, fb, twitter, instagram, youtube, and pinterest plugins specify the corporate’s or group’s social media identifiers. When you present these equipment, the module shows the corresponding social media icons within the footer.
The copyright property specifies the copyright textual content for the footer. The module shows this textual content on the backside of the footer.
The iconColor, backgroundColor, fontColor, and copyrightColor equipment customise the looks of the footer.
Along with making your web site look good, a responsive footer can enhance the consumer expertise of your web site. A responsive footer ensures that each one customers, no matter what machine they’re utilizing, can simply entry and use the footer.
Leave a Reply