Skip to content

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.json

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.

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.

Props

PropTypeDefaultDescription
brandReactNodeNoneThe logo and name at the start of the footer (ReactNode).
descriptionReactNodeNoneA line about the product under the brand (ReactNode).
columnsFooterColumn[][]The link columns (FooterColumn[]). Each one is a <nav> named by its title.
onSubscribe((email: string) => void | Promise<void>)NoneShows the newsletter form and is called with the trimmed email ((email: string) => void | Promise<void>). Return a promise to show the loading state; throw to show an error. Without it there is no form.
socialsFooterSocial[][]The social icon links (FooterSocial[]).
copyrightReactNodeNoneThe copyright line in the legal row (ReactNode).
legalLinksFooterLink[][]The legal links in the legal row, for example privacy and terms (FooterLink[]).
headingLevelHeadingLevelOption2Level of the column and newsletter headings (1 to 6); "none" renders plain text.
labelsPartial<SiteFooterLabels>defaultSiteFooterLabelsEvery other string, for translation: labels={{ newsletterTitle: "…" }}; omitted keys keep the English of defaultSiteFooterLabels. All 10 keys of SiteFooterLabels are listed in the key table under the props table.
classNamestringNoneAdds extra classes to the <footer> (string).
SiteFooterLabels keys and English defaults (10)
Pass any key in labels; the rest keep the defaults of defaultSiteFooterLabels.
KeyEnglish default
newsletterTitleStay in the loop
newsletterTextOne short email when something ships. No spam, unsubscribe any time.
emailEmail address
emailPlaceholderyou@example.com
subscribeSubscribe
invalidEmailEnter a valid email address.
subscribedThanks. Check your inbox to confirm.
genericErrorSomething went wrong. Try again.
socialSocial links
legalLegal

Keyboard

KeysAction
TabColumn links top to bottom, then the newsletter field and button, the social links and the legal links.
EnterFollow a link, or submit the newsletter form.

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.
  • 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

20 blocks pages in all: browse them on All blocks.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .