Footer
The footer is an area at the bottom of a document page containing data common to other pages.

Usage
npm i react-hartan
import { Footer } from "react-hartan"
function App() {
return (
<>
<Footer></Footer>
</>
)
}
export default AppCustomization With Props
footerList-> Required to be sent by the user, accepts an array of objects, where each element is an object of the structure:
{
footerLinkHeading: "",
footerLinks: [
{
footerLinkName: "",
footerLinkSrc: "",
}
]
}
// footerLinks is an array of objects with above structurecopyrightYear-> Accepts a string value, a year which is shown in the footer.copyrightName-> Accepts a string value, a name to be shown in the footer.id-> The id prop is similar to the id attribute in HTML. It allows to provide overall component id.userFooterStyle-> Custom styling prop for the full footer section.userLinksStyle-> Custom styling prop for full links container.userFooterLinksStyle-> Custom styling prop for each link container inside the full links container.userLinksDataStyle-> Custom styling prop for link data container.userCopyrightStyle-> Custom styling prop for the copyright container.
import { Footer } from "react-hartan"
function App() {
return (
<>
<Footer></Footer>
</>
)
}
export default App// App.css
.bg-red{
padding: 2rem;
background-color: red;
}
.bg-pink{
background-color: pink;
}
// App.jsx
import { Footer } from "react-hartan"
const list = [
{
footerLinkHeading: "Support",
footerLinks: [
{
footerLinkName: "Gomtinagar and Daliganj, Lucknow",
footerLinkSrc: ""
},
{
footerLinkName: "hartanlibrary@gmail.com",
footerLinkSrc: "mailto:hartanlibrary@gmail.com"
},
{
footerLinkName: "9999999999",
footerLinkSrc: ""
},
{
footerLinkName: "9999999999",
footerLinkSrc: ""
}
]
}
];
export default function App() {
return (
<>
<Footer footerList={list} userFooterStyle={"bg-pink"} userFooterLinksStyle={"bg-red"}></Footer>
</>
)
}Component Code
This is the code for Footer component.
Last updated