Xzero UI
Pro library

Site footer

A website footer with link columns and newsletter, a minimal layout, and a large fading Xzero mark.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui/site-footer
Live · keyboard ready

Use this as a starting point and replace the sample data with your own.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui/site-footer

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { SiteFooter } from "@/components/xzero/blocks/site-footer/site-footer";

export function Footer() {
  return (
    <SiteFooter
      brand={{ name: "Acme", href: "/" }}
      tagline="Scheduling for small clinics."
      columns={[
        { title: "Product", links: [{ label: "Pricing", href: "/pricing" }, { label: "Changelog", href: "/changelog" }] },
        { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
      ]}
      legal={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
      newsletter={{ onSubscribe: email => subscribe(email) }}
      status={{ label: "All systems normal", tone: "success", href: "https://status.example.com" }}
    />
  );
}

API reference

SiteFooter

A site footer in three variants: link columns with a newsletter, one minimal row, or a closing large brand mark.

PropTypeDefaultDescription
variant"columns" | "minimal" | "logo""columns"columns pairs a newsletter with link columns, minimal is one quiet row, logo ends in a large fading mark.
brand{ name: string; href?: string; mark?: ReactNode }{ name: "Xzero" }Brand shown with the tagline.
taglinestring–One short line under the brand.
columns{ title: string; links: SiteFooterLink[] }[]siteFooterExampleColumnsLink columns.
linksSiteFooterLink[]–Links for the minimal variant. Defaults to the first link of each column.
legalSiteFooterLink[]–Small links beside the copyright, such as Privacy and Terms.
socialsSiteFooterLink[]–Social links.
newsletter{ title?; description?; placeholder?; onSubscribe?: (email: string) => void | Promise<void> } | null–Newsletter signup. Throw or reject in onSubscribe to show an error. Pass null to hide it.
status{ label: string; tone?: "success" | "warning" | "danger"; href?: string } | null–A system status link. Pass null to hide it.
yearnumber–Year in the copyright line.
onNavigate(link: SiteFooterLink) => void–Called for every pressed link. Links without an href render as buttons and only call this.
classNamestring–Extra class on the footer.

SiteFooterLink

PropTypeDefaultDescription
label (required)string–Link text.
hrefstring–Destination.
externalboolean–Opens in a new tab and shows an outward arrow.

SiteFooterBlock

Default export: a preview with a layout switcher.

PropTypeDefaultDescription
variantSiteFooterVariant"columns"Initial variant.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components