Skip to content

Footer

SM · 950B gzip budget

A simple site footer with locale-aware link list.

Category
Navigation
Budget
sm, single-purpose control
External runtime
React / React DOM only
axe fixtureSSR rendersource scanbundle budget

Preview

Live fixture
Preview locale

Try the component here. Locale-aware formatting and direction follow the selected language; example content and labels are not automatically translated. Overlay demos use interactive launchers.

Install

npx shadcn@latest add https://gear5-ui.vercel.app/r/footer.json

Copies the source into your project. Pulls in 1 shared registry item: cn.

New here? Set up Tailwind and import aliases first →

Source & props

Edit on GitHub ↗

Prop types and inline documentation are included below. This is repository source; the installer rewrites shared imports for your project.

import { cn } from "../lib/cn";

export interface FooterLink {
  label: string;
  href: string;
}

export interface FooterProps {
  links: FooterLink[];
  copyright: string;
  className?: string;
}

export function Footer({ links, copyright, className }: FooterProps) {
  return (
    <footer className={cn("border-t border-neutral-200 dark:border-neutral-800", className)}>
      <div className="mx-auto flex max-w-6xl flex-col items-center gap-3 px-5 py-6 text-sm text-neutral-600 sm:flex-row sm:justify-between dark:text-neutral-400">
        <p>{copyright}</p>
        <ul className="flex gap-4">
          {links.map((link) => (
            <li key={link.href}>
              <a href={link.href} className="hover:text-neutral-900 dark:hover:text-neutral-100">
                {link.label}
              </a>
            </li>
          ))}
        </ul>
      </div>
    </footer>
  );
}

What CI checks

Quality contract
  • Bundled, minified and gzipped against its tier budget
  • Audited by axe in the state previewed above
  • Rendered through react-dom/server with no browser globals
  • Scanned for network calls, dangerous sinks, and unguarded animation