Skip to content

Footer with optional credit line in React

A complete footer (introduction, contact details, sitemap, legal links) where the Made with Forge link is a standalone paragraph: keep it or delete it, the layout stays the same.

Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in React

CreditFooter.tsx
type CreditFooterProps = {
  /** Shows the optional "Réalisé avec Forge" credit; turning it off leaves the layout intact. */
  showCredit?: boolean;
};

export default function CreditFooter({ showCredit = true }: CreditFooterProps) {
  return (
    <footer className="border-t border-[#d6d3d1] bg-[#f5f1ea] px-[clamp(1.25rem,4vw,3rem)] pt-12 pb-4 text-[#1c1917] dark:border-[#44403c] dark:bg-[#1c1917] dark:text-[#f5f5f4]">
      <div className="grid gap-10 md:grid-cols-[minmax(0,1.3fr)_minmax(0,2fr)]">
        <div className="grid content-start gap-3">
          <p className="m-0 text-2xl font-bold tracking-tight">Atelier Ostra</p>
          <p className="m-0 max-w-[30rem] leading-relaxed text-[#57534e] dark:text-[#a8a29e]">

Free component: copy it freely, including for commercial projects.

Footers components in React
  • A footer for building tradespeople: contact details and a call button, service area with the towns covered, opening hours, then the details a French professional must display (SIRET, VAT number, registration, ten-year liability insurance with insurer and coverage, consumer mediator) and the legal links.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A dark footer with brand, social links and a four-column sitemap that turns into collapsible sections on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Cards linking to each social network with the reason to follow, for clubs and associations.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A highlighted invitation to subscribe, followed by the essential links.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Logo, one line of links and the copyright, centered and airy.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single strip with copyright, legal pages, cookie settings and back to top.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component