Footer: brand plus four link columns
Wordmark and tagline beside four link columns with micro-label titles, and a bottom bar with copyright and legal links.
pnpm dlx shadcn@latest add @haze/footer-columns---
import LogoMark from "../ui/logo-mark.astro";
interface Props {
brand?: string;
logoShape?: "circle" | "square" | "triangle" | "diamond" | "haze";
tagline?: string;
columns?: { title: string; links: { label: string; href: string }[] }[];
legal?: { label: string; href: string }[];
copyright?: string;
}
const {
brand = "Driftwork",
logoShape = "diamond",
tagline = "The fast, focused workspace for product teams.",
columns = [
{ title: "Product", links: [{ label: "Features", href: "#features" }, { label: "Integrations", href: "#integrations" }, { label: "Pricing", href: "#pricing" }, { label: "Changelog", href: "#changelog" }] },
{ title: "Company", links: [{ label: "About", href: "#about" }, { label: "Customers", href: "#customers" }, { label: "Careers", href: "#careers" }, { label: "Blog", href: "#blog" }] },
{ title: "Resources", links: [{ label: "Docs", href: "#docs" }, { label: "Guides", href: "#guides" }, { label: "Status", href: "#status" }, { label: "Support", href: "#support" }] },
{ title: "Developers", links: [{ label: "API", href: "#api" }, { label: "SDKs", href: "#sdks" }, { label: "Webhooks", href: "#webhooks" }] },
],
legal = [
{ label: "Privacy", href: "#privacy" },
{ label: "Terms", href: "#terms" },
{ label: "Security", href: "#security" },
],
copyright = "© 2026 Driftwork, Inc.",
} = Astro.props;
---
<footer class="border-t border-border bg-muted/40 px-6 pt-16 pb-10">
<div class="mx-auto max-w-6xl">
<div class="grid gap-10 lg:grid-cols-[2fr_repeat(4,1fr)]">
<div class="max-w-xs">
<LogoMark name={brand} shape={logoShape} class="text-foreground" />
<p class="mt-4 text-sm/6 text-muted-foreground">{tagline}</p>
</div>
<div class="grid grid-cols-2 gap-8 sm:grid-cols-4 lg:col-span-4">
{
columns.map((column) => (
<nav aria-label={column.title}>
<h2 class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">{column.title}</h2>
<ul class="mt-3 flex flex-col">
{column.links.map((link) => (
<li>
<a href={link.href} class="inline-block min-w-6 rounded-sm py-1 text-sm/6 text-muted-foreground transition-colors duration-150 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">
{link.label}
</a>
</li>
))}
</ul>
</nav>
))
}
</div>
</div>
<div class="mt-14 flex flex-col gap-4 border-t border-border pt-8 sm:flex-row sm:items-center sm:justify-between">
<p class="text-[0.8125rem]/5 text-muted-foreground">{copyright}</p>
<ul class="flex flex-wrap gap-x-6">
{
legal.map((link) => (
<li>
<a href={link.href} class="inline-block rounded-sm py-1 text-[0.8125rem]/5 text-muted-foreground transition-colors duration-150 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">
{link.label}
</a>
</li>
))
}
</ul>
</div>
</div>
</footer>When to use
- A marketing site with twelve or more secondary pages
- You need legal links and a copyright line
When not to use
- A small site with five links or fewer; a single-row footer is lighter
Installation
Add the Haze registry to components.json once, then install Footer: brand plus four link columns with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.
pnpm dlx shadcn@latest add @haze/footer-columnsnpx shadcn@latest add @haze/footer-columnsyarn dlx shadcn@latest add @haze/footer-columnsbunx --bun shadcn@latest add @haze/footer-columnsFirst time? Registry and theme setup
1. Add to components.json:
{
"registries": {
"@haze": "http://localhost:4329/r/{name}.json"
}
}2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Driftwork" | Wordmark text. |
| logoShape | "circle" | "square" | "triangle" | "diamond" | "haze" | "diamond" | Glyph shape passed to LogoMark. |
| tagline | string | demo tagline | One line under the wordmark. |
| columns | { title: string; links: { label: string; href: string }[] }[] | 4 demo columns | Link groups; each becomes a labelled nav. |
| legal | { label: string; href: string }[] | Privacy, Terms, Security | Links in the bottom bar. |
| copyright | string | "© 2026 Driftwork, Inc." | Copyright line. |
Accessibility
- Uses the <footer> landmark; each column is a <nav> labelled by its title, so screen-reader users can jump between groups.
- Link rows have at least 24 px hit targets.
Notes for AI
Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.
Install and use
Install the Haze UI block "Footer: brand plus four link columns" with `npx shadcn@latest add @haze/footer-columns`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import FooterColumns from "@/components/haze/blocks/footer-columns.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/footer-columns.md
Customize with real content
Adapt the Haze footer-columns block for our product. Replace the demo values of these props with our real content: brand, logoShape, tagline, columns, legal, copyright. Keep the layout, the heading level rules and these accessibility details: Uses the <footer> landmark; each column is a <nav> labelled by its title, so screen-reader users can jump between groups. Link rows have at least 24 px hit targets. Do not add raw color classes; use the Haze tokens.
Choose the right block
Before using footer-columns, check it fits: use it when a marketing site with twelve or more secondary pages; you need legal links and a copyright line. Avoid it when a small site with five links or fewer; a single-row footer is lighter.
Dependencies
- @haze/logo-mark
- @haze/theme (one-time setup)
Source · Original Haze UI work.