Footer 1: columns with newsletter
Site footer with brand and tagline, an optional newsletter form, up to four link columns and a legal bar.
// Ballmac UI: Footer 1. https://ui.ballmac.com/blocks/footer-1
"use client"
import * as React from "react"
import { Button } from "@/components/ballmac/button"
import { Input } from "@/components/ballmac/input"
import { cn } from "@/lib/utils"
type LinkGroup = { title: string; links: { label: string; href: string }[] }
type Footer1Props = React.ComponentProps<"footer"> & {
/** Brand name or logo. */
brand?: React.ReactNode
/** One line under the brand. */
tagline?: string
/** Link columns. */
groups?: LinkGroup[]
/** Called with the email from the newsletter form. Omit to hide the form. */
onSubscribe?: (email: string) => void
/** Text in the bottom bar, e.g. copyright. */
legal?: React.ReactNode
}
const defaults: LinkGroup[] = [
{ title: "Product", links: [{ label: "Features", href: "#" }, { label: "Pricing", href: "#" }, { label: "Changelog", href: "#" }] },
{ title: "Company", links: [{ label: "About", href: "#" }, { label: "Blog", href: "#" }, { label: "Careers", href: "#" }] },
{ title: "Resources", links: [{ label: "Docs", href: "#" }, { label: "Support", href: "#" }, { label: "Status", href: "#" }] },
{ title: "Legal", links: [{ label: "Privacy", href: "#" }, { label: "Terms", href: "#" }] },
]
function Footer1({
brand = "Acme",
tagline = "Software for teams who ship.",
groups = defaults,
onSubscribe,
legal = "© 2026 Acme, Inc. All rights reserved.",
className,
...props
}: Footer1Props) {
const id = React.useId()
const [sent, setSent] = React.useState(false)
return (
<footer data-slot="footer-1" className={cn("border-t", className)} {...props}>
<div className="mx-auto grid max-w-6xl gap-12 px-4 py-16 sm:px-6 lg:grid-cols-[1.3fr_2fr]">
<div className="max-w-sm">
<div className="text-lg font-semibold tracking-tight">{brand}</div>
<p className="mt-2 text-sm text-muted-foreground">{tagline}</p>
{onSubscribe && (
<form
className="mt-6 flex gap-2"
onSubmit={(e) => {
e.preventDefault()
const email = new FormData(e.currentTarget).get("email")
if (typeof email === "string" && email) {
onSubscribe(email)
setSent(true)
}
}}
>
<label htmlFor={`${id}-email`} className="sr-only">
Email address
</label>
<Input id={`${id}-email`} name="email" type="email" required placeholder="you@company.com" autoComplete="email" />
<Button type="submit">Subscribe</Button>
</form>
)}
<p aria-live="polite" className="mt-2 text-sm text-muted-foreground">
{sent ? "Thanks! Check your inbox to confirm." : ""}
</p>
</div>
<nav aria-label="Footer" className="grid grid-cols-2 gap-8 sm:grid-cols-4">
{groups.map((g) => (
<div key={g.title}>
<h2 className="text-sm font-medium">{g.title}</h2>
<ul className="mt-4 space-y-3 text-sm">
{g.links.map((l) => (
<li key={l.label}>
<a href={l.href} className="rounded-sm text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50">
{l.label}
</a>
</li>
))}
</ul>
</div>
))}
</nav>
</div>
<div className="border-t">
<p className="mx-auto max-w-6xl px-4 py-6 text-xs text-muted-foreground sm:px-6">{legal}</p>
</div>
</footer>
)
}
export { Footer1, type Footer1Props }Installation
$ pnpm dlx shadcn@latest add @ballmac/footer-1Add the Ballmac items it builds on.
$ pnpm dlx shadcn@latest add @ballmac/button @ballmac/inputCopy the source into your project.
components/ballmac/blocks/footer-1/footer-1.tsx// Ballmac UI: Footer 1. https://ui.ballmac.com/blocks/footer-1 "use client" import * as React from "react" import { Button } from "@/components/ballmac/button" import { Input } from "@/components/ballmac/input" import { cn } from "@/lib/utils" type LinkGroup = { title: string; links: { label: string; href: string }[] } type Footer1Props = React.ComponentProps<"footer"> & { /** Brand name or logo. */ brand?: React.ReactNode /** One line under the brand. */ tagline?: string /** Link columns. */ groups?: LinkGroup[] /** Called with the email from the newsletter form. Omit to hide the form. */ onSubscribe?: (email: string) => void /** Text in the bottom bar, e.g. copyright. */ legal?: React.ReactNode } const defaults: LinkGroup[] = [ { title: "Product", links: [{ label: "Features", href: "#" }, { label: "Pricing", href: "#" }, { label: "Changelog", href: "#" }] }, { title: "Company", links: [{ label: "About", href: "#" }, { label: "Blog", href: "#" }, { label: "Careers", href: "#" }] }, { title: "Resources", links: [{ label: "Docs", href: "#" }, { label: "Support", href: "#" }, { label: "Status", href: "#" }] }, { title: "Legal", links: [{ label: "Privacy", href: "#" }, { label: "Terms", href: "#" }] }, ] function Footer1({ brand = "Acme", tagline = "Software for teams who ship.", groups = defaults, onSubscribe, legal = "© 2026 Acme, Inc. All rights reserved.", className, ...props }: Footer1Props) { const id = React.useId() const [sent, setSent] = React.useState(false) return ( <footer data-slot="footer-1" className={cn("border-t", className)} {...props}> <div className="mx-auto grid max-w-6xl gap-12 px-4 py-16 sm:px-6 lg:grid-cols-[1.3fr_2fr]"> <div className="max-w-sm"> <div className="text-lg font-semibold tracking-tight">{brand}</div> <p className="mt-2 text-sm text-muted-foreground">{tagline}</p> {onSubscribe && ( <form className="mt-6 flex gap-2" onSubmit={(e) => { e.preventDefault() const email = new FormData(e.currentTarget).get("email") if (typeof email === "string" && email) { onSubscribe(email) setSent(true) } }} > <label htmlFor={`${id}-email`} className="sr-only"> Email address </label> <Input id={`${id}-email`} name="email" type="email" required placeholder="you@company.com" autoComplete="email" /> <Button type="submit">Subscribe</Button> </form> )} <p aria-live="polite" className="mt-2 text-sm text-muted-foreground"> {sent ? "Thanks! Check your inbox to confirm." : ""} </p> </div> <nav aria-label="Footer" className="grid grid-cols-2 gap-8 sm:grid-cols-4"> {groups.map((g) => ( <div key={g.title}> <h2 className="text-sm font-medium">{g.title}</h2> <ul className="mt-4 space-y-3 text-sm"> {g.links.map((l) => ( <li key={l.label}> <a href={l.href} className="rounded-sm text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50"> {l.label} </a> </li> ))} </ul> </div> ))} </nav> </div> <div className="border-t"> <p className="mx-auto max-w-6xl px-4 py-6 text-xs text-muted-foreground sm:px-6">{legal}</p> </div> </footer> ) } export { Footer1, type Footer1Props }Update the import paths to match your project setup.
Usage
"use client"
import { Footer1 } from "@/components/ballmac/blocks/footer-1/footer-1"
export default function Footer1Demo() {
return <Footer1 onSubscribe={() => {}} />
}States
This block has no states. Static content: nothing to load, submit or fail.
Quality scorecard
Every applicable check passes
Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.0, across 1 example.
Passed: Accessibility scan
No serious or critical issues in light and dark, on a phone and a desktop (axe-core 4.13.0, WCAG 2.1 AA and best-practice rules).
Passed: Small screens
No sideways scrolling at 360, 390 or 1280 px wide.
Passed: Reduced motion
No endless animation to begin with.
Passed: Right to left
Mirrors correctly in Arabic, Hebrew, Persian and Urdu layouts (0% of elements off the mirror, limit 15%).
Passed: Clean console
No console errors or React hydration errors while loading.
Passed: Keyboard
13 tab stops, each showing a visible change when it takes focus.
Not applicable: Loading, empty and error
Static content: nothing to load, submit or fail.
For information: Automated tests
No test file of its own yet.
For information: Footprint
1.5 KB of source (gzip) in 1 file. No extra npm packages.
Automated checks find a subset of problems and do not replace testing with a screen reader and a keyboard in your own app. What they miss.
Dependencies
- npm
- None
Use with AI
The bottom of every marketing page. Pass groups of links; pass onSubscribe to show the newsletter form (you handle the email). With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Footer 1: columns with newsletter (@ballmac/footer-1) to this project with the shadcn MCP, then use it where it fits.
Use it for
- Marketing sites and landing pages
Not for
- App screens behind login (keep chrome minimal)
Registry JSON: https://ui.ballmac.com/r/footer-1.json
Free to use in personal and commercial projects.
More footer blocks
Footer 2: giant wordmark
Brand, tagline and a live status pill beside three link columns, a legal bar with icon links, and an oversized wordmark that sinks into a fading gradient along the bottom.
Footer Pro 1: rich footer with letter signup
Link columns, a short email signup, social and contact icons, legal links, a language picker, a live status pill and a large faded wordmark.
Footer Pro 2: flowing silk
A fashion footer over a shader-drawn silk: long pleats with threads that shine along their length, a light that follows the pointer, a newsletter field, link columns and the brand name set very large across the bottom.
Ballmac UI Pro
Need the whole screen, not one piece?
311 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.
Not ready? Try three Pro blocks free
Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.