- No data uploaded
- Instant results
Tailwind CSS Footer for React
A production-ready minimal footer: a multi-column site footer with a brand description, three link groups, a newsletter sign-up field and a copyright row. Pick your brand color, toggle dark mode and corner radius — the live preview and the React code update instantly in your browser.
Live component editor
export default function Footer() {
return (
<footer className="mt-16 bg-white border border-slate-200">
<div className="max-w-6xl mx-auto px-6 py-12 grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<p className="text-lg font-bold text-slate-900">◆ Acme</p>
<p className="mt-2 text-sm text-slate-500">Tools for teams that ship.</p>
</div>
<div>
<h3 className="text-sm font-semibold uppercase text-slate-900">Product</h3>
<ul className="list-none mt-3 flex flex-col gap-2">
<li><a href="#" className="text-sm no-underline text-slate-500">Features</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Pricing</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Changelog</a></li>
</ul>
</div>
<div>
<h3 className="text-sm font-semibold uppercase text-slate-900">Company</h3>
<ul className="list-none mt-3 flex flex-col gap-2">
<li><a href="#" className="text-sm no-underline text-slate-500">About</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Careers</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Blog</a></li>
</ul>
</div>
<div>
<h3 className="text-sm font-semibold uppercase text-slate-900">Resources</h3>
<ul className="list-none mt-3 flex flex-col gap-2">
<li><a href="#" className="text-sm no-underline text-slate-500">Docs</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Guides</a></li>
<li><a href="#" className="text-sm no-underline text-slate-500">Support</a></li>
</ul>
</div>
</div>
<div className="border-t border-slate-200">
<div className="max-w-6xl mx-auto px-6 py-6 flex flex-wrap items-center justify-between gap-4">
<p className="text-sm text-slate-500">© 2026 Acme Inc. All rights reserved.</p>
<form className="flex items-center gap-2">
<label htmlFor="ft-email" className="text-sm text-slate-500">Newsletter</label>
<input id="ft-email" type="email" placeholder="you@company.com" className="block w-full px-3 py-2 text-sm rounded-lg border bg-white border-slate-300 text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:border-[#4f46e5]" />
<button type="submit" className="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-[#4f46e5] hover:bg-[#433cc3] text-white shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white">Subscribe</button>
</form>
</div>
</div>
</footer>
);
}
More Tailwind components for React
All components →- Navbar A responsive top navigation bar with a logo, primary links, a sign-in/CTA pair on desktop and a collapsible hamburger menu on mobile
- Cookie Consent Banner A GDPR-style cookie banner with equally prominent “Accept all” and “Reject all”, granular analytics/marketing toggles (off by default), stored consent and Google Consent Mode v2 signals
- Contact Form A contact card with name, email, a topic selector, a message textarea and a submit button
- Hero Section A landing-page hero with an announcement badge, a large headline, supporting copy, primary and secondary calls to action and a row of social-proof stats
- Signup Form A registration card with name, email and password fields, a password hint, a terms-of-service checkbox and a primary call to action
- Login Modal A centered sign-in dialog with email and password fields, “remember me”, a forgot-password link and a social sign-in button
- Pricing Table A three-tier pricing section with a monthly/yearly billing toggle, a highlighted “most popular” plan and feature checklists
- Feature Grid A marketing section with a centered heading and a responsive grid of six feature cards, each with an icon badge, title and description
Install Tailwind CSS for React
Create a React project with Vite, then add Tailwind CSS v3:
npm create vite@latest my-app -- --template react
cd my-app
npm install
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -pSet content: ['./index.html', './src/**/*.{js,jsx}'] in tailwind.config.js, and add to src/index.css:
@tailwind base;
@tailwind components;
@tailwind utilities;The brand color is applied with arbitrary values such as bg-[#4f46e5], so no theme configuration is needed.
Use the footer in React
// App.jsx
import Footer from './Footer';
export default function App() {
return <Footer />;
}Accessibility & customization
Wrapped in a <footer> landmark; link groups use headings + lists, and the newsletter input has a visually associated label for assistive technology.
Every color, radius and dark-mode choice is baked into plain utility classes, so the copied code has no runtime dependency on this site.
Compatibility
| Item | Details |
|---|---|
| CSS framework | Tailwind CSS v3.4+ |
| Library | React 18+ (function component) |
| Interactive state | None (static markup) |
| Dark mode | Yes — toggle in the editor |
| Style | Minimal |