Skip to content
English

Usage

import { SiteFooter } from './SiteFooter.jsx'

// Without onSubscribe an email is "subscribed" after a short wait. Wire it to your mailing list:
<SiteFooter
  locale="en"
  columns={[{ id: 'product', title: 'Product', links: [{ label: 'Pricing', href: '/pricing' }] }]}
  legal={[{ label: 'Privacy', href: '/privacy' }, { label: 'Terms', href: '/terms' }]}
  language={locale}
  onLanguageChange={(next) => router.push('/' + next + '/')}
  onSubscribe={async (email) => (await subscribe(email)).ok}
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text and sample links.
columnsArray<{ id, title, links: Array<{ label, href, badge? }> }>sample columnsThe link columns, three or four read best; a link’s badge marks something new. On a phone they fold into an accordion.
legalArray<{ label, href }>Privacy, Terms, CookiesThe legal links beside the copyright.
languages / languageArray<{ value, label }> / stringfour languages / localeThe choices of the language select and the chosen one.
yearnumberthis yearThe year of the copyright line; pass it from the server to keep server and browser renders equal.
onSubscribe / onLanguageChange(email) => Promise<boolean | string | void> / (value) => void—Subscribes an email (resolve false or a sentence to say it failed); another language was chosen.
productstring'Halden' (sample)The brand: its name in the brand line, the copyright and the large faint name, and the letter of its mark.
logoReactNode | string—The product’s logo beside its name: an element or an image URL. Without it a square with the brand’s first letter.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Added to the root footer.

Add it to your project

Copy the prompt into Codex or Claude Code. The agent reads the published source, shows you what it will write and adds the block together with the components it is built from.

SiteFooter.jsxsite-footer.csscopy.jskit.jsxkit.cssui/base-button/ui/success-check/ui/select/ui/text-input/ui/smooth-accordion/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.