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
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text and sample links. |
columns | Array<{ id, title, links: Array<{ label, href, badge? }> }> | sample columns | The link columns, three or four read best; a link’s badge marks something new. On a phone they fold into an accordion. |
legal | Array<{ label, href }> | Privacy, Terms, Cookies | The legal links beside the copyright. |
languages / language | Array<{ value, label }> / string | four languages / locale | The choices of the language select and the chosen one. |
year | number | this year | The 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. |
product | string | 'Halden' (sample) | The brand: its name in the brand line, the copyright and the large faint name, and the letter of its mark. |
logo | ReactNode | string | — | The product’s logo beside its name: an element or an image URL. Without it a square with the brand’s first letter. |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
className | string | — | 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.