React Site Footer
SiteFooter is a React site footer block on one glass panel: brand and blurb, link columns that are navigation landmarks, a newsletter field with validation, social icon links and a legal row. Every part is optional.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/site-footer.jsonSiteFooterdefaultSiteFooterLabels
Full footer
Try the newsletter field with a bad address, then a good one: the message under it is announced. Without onSubscribe the form is not rendered.
import { SiteFooter, type FooterColumn } from "@/components/sheenui/blocks/site-footer";
// Package build (after the first npm release, or a packed tarball): import { SiteFooter, type FooterColumn } from "@sheenui/theme";
// Your call; throw to show the error under the field
async function subscribe(email: string) {
const res = await fetch("/api/newsletter", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email }),
});
if (!res.ok) throw new Error("We could not subscribe that address.");
}
const columns: FooterColumn[] = [
{ id: "product", title: "Product", links: [{ label: "Features", href: "/features" }, { label: "Pricing", href: "/pricing" }] },
{ id: "company", title: "Company", links: [{ label: "About", href: "/about" }, { label: "Contact", href: "/contact" }] },
];
export function Example() {
return (
<SiteFooter
brand="Acme"
description="Tools for small teams who like their software calm."
columns={columns}
onSubscribe={async (email) => {
await subscribe(email);
}}
socials={[
{
id: "code",
label: "Source code",
href: "https://example.com/code",
icon: (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8">
<path d="m8 8-4 4 4 4M16 8l4 4-4 4" />
</svg>
),
},
]}
copyright="© 2026 Acme, Inc."
legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
/>
);
}Files to copy
9 folders · 13 files · 4 packages
- From
theme/src/ blocks/{site-footer.tsx, icons.tsx}components/button/components/input/components/spinner/components/status-icons/hooks/{use-latest.ts, use-magnetic.ts, use-media-query.ts, use-preferences.ts}motion/{gate.ts, tokens.ts}lib/{cn.ts, field-size.ts, form.ts, heading.ts, state-light.tsx}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/site-footer.jsonRegistry item: site-footer. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Minimal
Every part is optional: a brand and a legal row make a short footer.
import { SiteFooter } from "@/components/sheenui/blocks/site-footer";
// Package build (after the first npm release, or a packed tarball): import { SiteFooter } from "@sheenui/theme";
export function Example() {
return (
<SiteFooter
brand="Acme"
copyright="© 2026 Acme, Inc."
legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
/>
);
}Props
Keyboard
Accessibility
- A <footer> (the page's contentinfo landmark). Each column is a <nav> named by its heading; with headingLevel 'none' the names fall away with the headings.
- Social links are named by their label and their icons are aria-hidden. External links open a new tab with rel='noreferrer'.
- The subscribe confirmation is a polite status region that is always in the page, so it is announced when its text appears.
- Links and icon buttons grow to 44 px on touch devices. One glass panel holds everything, so there is one backdrop blur.
All exports on this page
SiteFooter— A site footer on glass: the brand and a line about it, link columns, an optional newsletter form, social icon links and a legal row.defaultSiteFooterLabels— The English SiteFooterLabels used when labels is omitted; a partial labels prop is merged over it.
When to use the site footer
- Use SiteFooter as the last block of a marketing page, with three or four columns of links, a short description of the product and a legal row with the privacy and terms links.
- Use onSubscribe(email) to show the newsletter form; return a promise for the loading state or throw to show an error, and the confirmation is announced in a polite status region.
- Use socials with a label and an icon for each profile; the label names the link and the icon is aria-hidden, so the row stays accessible.
- Skip the newsletter form when you have no list yet; leave out onSubscribe and the form is not rendered at all, so there is no dead field.
- Pair it with HeroSection and FeatureGrid above it, and keep it to one glass panel so a page stays within the backdrop-blur budget.
Frequently asked questions
Related pages
20 blocks pages in all: browse them on All blocks.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .