# Footer Mega

> A full product footer: brand column with logo mark, tagline and a newsletter field with inline error and success states, four link columns that fold into accordions on phones, and a bottom bar with a system-status pill, social links, a language select, a light/dark/system switch and the legal row.

- Slug: `footer-mega`
- Category: [Footers](https://www.assembli.design/category/footers.md)
- Type: block
- Tags: footer, newsletter, status, language, theme-switch, accordion
- npm dependencies: @base-ui/react, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/footer-mega
- Page: https://www.assembli.design/components/footer-mega

![Footer Mega preview](https://www.assembli.design/thumbnails/footer-mega-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` (required) | `string` |  | Brand name, used beside the logo and in the copyright line. |
| `brandHref` | `string` | `"/"` | Where the brand mark links. Defaults to "/". |
| `logo` | `React.ReactNode` |  | A logo mark. Defaults to a monogram of the first letter. |
| `tagline` | `React.ReactNode` |  |  |
| `columns` (required) | `FooterMegaColumn[]` |  |  |
| `newsletter` | `{ title?: React.ReactNode; description?: React.ReactNode; placeholder?: string …` | `{}` | Newsletter copy; `false` hides the form. |
| `onSubscribe` | `(email: string) => void \| Promise<void>` |  | Called with the email. Throw to show an error; resolve to show the success state. |
| `status` | `FooterMegaStatus` | `{}` |  |
| `languages` | `{ value: string; label: string }[]` | `[{ value: "en", label: "English" }]` |  |
| `defaultLanguage` | `string` |  |  |
| `onLanguageChange` | `(value: string) => void` |  |  |
| `defaultTheme` | `FooterMegaTheme` | `"system"` |  |
| `onThemeChange` | `(theme: FooterMegaTheme) => void` |  | The control only keeps local state; wire this to your theme provider. |
| `socials` | `{ network: FooterMegaNetwork; href: string; label?: string }[]` | `[]` |  |
| `legal` | `FooterMegaLink[]` | `[]` |  |
| `copyright` | `React.ReactNode` |  |  |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/footer-mega/footer-mega.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/footer-mega
```

Registry item JSON: https://www.assembli.design/r/footer-mega.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
