Support CoreUI Development

CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

You can support our Open Source software development in the following ways:

  • Buy the CoreUI PRO, and get access to PRO components, and dedicated support.
  • Became a sponsor, and get your logo on BACKERS.md/README.md files or each site of this documentation
  • Give us a star ⭐️ on Github.

React Footer Component

React footer component is an additional navigation used for displaying general information that a user might want to access from any page within your site. It is a place to display boilerplate text about the site, company info, copyrights, links to a contact form, sitemap, FAQ and other such resources.

Example#

1<CFooter>
2 <div>
3 <CLink href="https://coreui.io">CoreUI</CLink>
4 <span>&copy; 2021 creativeLabs.</span>
5 </div>
6 <div>
7 <span>Powered by</span>
8 <CLink href="https://coreui.io">CoreUI</CLink>
9 </div>
10</CFooter>

Customizing#

CSS variables#

React footers use local CSS variables on .footer for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.

1--cui-footer-min-height: #{$footer-min-height};
2--cui-footer-padding-x: #{$footer-padding-x};
3--cui-footer-padding-y: #{$footer-padding-y};
4--cui-footer-color: #{$footer-color};
5--cui-footer-bg: #{$footer-bg};
6--cui-footer-border-color: #{$footer-border-color};
7--cui-footer-border: #{$footer-border-width} solid var(--cui-footer-border-color);

How to use CSS variables#

1const vars = {
2 '--my-css-var': 10,
3 '--my-another-css-var': "red"
4}
5return <CFooter style={vars}>...</CFooter>

SASS variables#

1$footer-min-height: 3rem;
2$footer-padding-y: $spacer * .5;
3$footer-padding-x: $spacer;
4$footer-bg: $gray-100;
5$footer-color: $body-color;
6$footer-border-width: 1px;
7$footer-border-color: $border-color;

API#

CFooter#

1import { CFooter } from '@coreui/react'
2// or
3import CFooter from '@coreui/react-pro/src/components/footer/CFooter'
PropertyDescriptionTypeDefault
classNameA string of all className you want applied to the base component.string-
positionPlace footer in non-static positions.'fixed' | 'sticky'-