# Footer with support and status

> Help-first footer with documentation and contact cards, an optional service-status row, and resource links.

- Kind: block · Category: Footer · Interactivity: none
- Install: `npx shadcn@latest add @haze/footer-support`
- File: `src/components/haze/blocks/footer-support.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/logo-mark, @haze/status, @haze/utils
- Docs page: https://hazeui.com/blocks/footer-support

## Use when
- Visitors at the bottom of a page need an obvious way to get help
- A product has a status page alongside documentation and direct support

## Avoid when
- The footer needs a large directory of destinations. Use footer-accordion.
- Your only footer links are legal or attribution. Use footer-compact.

## Alternatives
- [footer-accordion](https://hazeui.com/blocks/footer-accordion.md)
- [footer-compact](https://hazeui.com/blocks/footer-compact.md)
- [contact-methods](https://hazeui.com/blocks/contact-methods.md)
- [status](https://hazeui.com/ui/status.md)

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| title | `string` | "Need a hand?" | no | Heading above the support options. |
| headingLevel | `2 \| 3 \| 4` | 2 | no | Heading level of the introduction. |
| description | `string` | Demo support description | no | Explains the kind of help visitors can get. |
| support | `{ label: string; href: string; description: string; icon?: AstroComponent }[]` | Read the guide, Contact support | no | Clickable help options and their short descriptions. An Astro icon is optional. |
| status | `{ label: string; href: string; state: string; variant?: StatusVariant } \| null` | Example operational status | no | Caller-supplied service state and the status page URL. Pass null to remove the row. |
| brand | `string` | "Fieldwork" | no | Name displayed in the footer wordmark. |
| homeHref | `string` | "/" | no | Destination for the footer wordmark. |
| links | `Link[]` | FAQ, Updates | no | Secondary destinations after the status row. |
| navLabel | `string` | "Support and resources" | no | Accessible name for the secondary links landmark. |
| copyright | `string` | "© 2026 Fieldwork" | no | Copyright or attribution text. |
| class | `string` |  | no | Additional classes on the footer. |

## Accessibility
- Each support card has a descriptive link and a full-card hit target.
- Service status is written in text so visitors can read it independently of the dot color.
- Key Tab: Move through the help cards, status link, and footer links.

## Agent prompts

### Install and use

Install the Haze UI block "Footer with support and status" with `npx shadcn@latest add @haze/footer-support`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "https://hazeui.com/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 FooterSupport from "@/components/haze/blocks/footer-support.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: https://hazeui.com/blocks/footer-support.md

### Customize with real content

Adapt the Haze footer-support block for our product. Replace the demo values of these props with our real content: title, headingLevel, description, support, status, brand, homeHref, links, navLabel, copyright, class. Keep the layout, the heading level rules and these accessibility details: Each support card has a descriptive link and a full-card hit target. Service status is written in text so visitors can read it independently of the dot color. Do not add raw color classes; use the Haze tokens.

### Choose the right block

Before using footer-support, check it fits: use it when visitors at the bottom of a page need an obvious way to get help; a product has a status page alongside documentation and direct support. Avoid it when the footer needs a large directory of destinations. use footer-accordion.; your only footer links are legal or attribution. use footer-compact.. Alternatives: @haze/footer-accordion, @haze/footer-compact, @haze/contact-methods, @haze/status.

## Example requests that should lead here
- Add a help footer with links to documentation, support, and the status page
- Build a product footer that displays the current status from my own service data

## Source

```astro
---
import { ArrowUpRight, BookOpen, LifeBuoy } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";
import LogoMark from "../ui/logo-mark.astro";
import Status from "../ui/status.astro";

interface Link { label: string; href: string }
interface SupportLink extends Link { description: string; icon?: (props: Record<string, unknown>) => unknown }
interface ServiceState extends Link { state: string; variant?: "default" | "info" | "success" | "warning" | "destructive" }
interface Props {
  title?: string;
  headingLevel?: 2 | 3 | 4;
  description?: string;
  support?: SupportLink[];
  status?: ServiceState | null;
  brand?: string;
  homeHref?: string;
  links?: Link[];
  navLabel?: string;
  copyright?: string;
  class?: string;
}

const {
  title = "Need a hand?",
  headingLevel = 2,
  description = "Get help with a build or check on the services your team uses.",
  support = [
    { label: "Read the guide", href: "/docs/", description: "Install components and set up your theme.", icon: BookOpen },
    { label: "Contact support", href: "mailto:help@example.com", description: "Send a question to the support team.", icon: LifeBuoy },
  ],
  status = { label: "System status", href: "/ui/status/", state: "All systems operational", variant: "success" },
  brand = "Fieldwork",
  homeHref = "/",
  links = [{ label: "FAQ", href: "/browse?cat=faq" }, { label: "Updates", href: "/browse?cat=changelog" }],
  navLabel = "Support and resources",
  copyright = "© 2026 Fieldwork",
  class: className,
} = Astro.props;
const Heading = `h${headingLevel}` as const;
---

<footer class={cn("border-t border-border bg-muted/40 px-4 pt-8 pb-5 sm:px-6 sm:pt-12", className)}>
  <div class="mx-auto max-w-6xl">
    <div class="grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:gap-10">
      <div class="min-w-0 wrap-anywhere">
        <Heading class="text-xl/7 font-semibold tracking-tight sm:text-2xl/8">{title}</Heading>
        <p class="mt-2 max-w-xs text-sm/6 text-muted-foreground">{description}</p>
      </div>
      <ul role="list" class="grid min-w-0 gap-2 sm:grid-cols-[repeat(auto-fit,minmax(min(100%,12rem),1fr))]">
        {support.map((item) => (
          <li class="min-w-0">
            <a href={item.href} class="group flex h-full min-h-12 items-start gap-3 rounded-xl border border-border bg-field p-3 text-card-foreground transition-[border-color,translate,box-shadow] duration-150 ease-snappy hover:-translate-y-0.5 hover:border-border-strong hover:shadow-lift focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring">
              {item.icon && <span class="grid size-8 shrink-0 place-items-center rounded-lg bg-foreground/5 text-muted-foreground inset-ring inset-ring-frame [&_svg]:size-4"><item.icon aria-hidden="true" /></span>}
              <span class="min-w-0 flex-1 wrap-anywhere">
                <span class="block text-sm/5 font-medium">{item.label}</span>
                <span class="mt-0.5 block text-[0.8125rem]/5 text-muted-foreground">{item.description}</span>
              </span>
              <ArrowUpRight class="size-3.5 shrink-0 text-muted-foreground transition-[translate] duration-150 ease-snappy group-hover:-translate-y-0.5 rtl:-scale-x-100" aria-hidden="true" />
            </a>
          </li>
        ))}
      </ul>
    </div>
    {status && (
      <a href={status.href} class="mt-4 flex min-h-10 flex-wrap items-center justify-between gap-x-3 gap-y-1 rounded-lg border border-frame bg-foreground/5 px-3 py-2 text-sm/5 wrap-anywhere transition-colors duration-150 hover:bg-foreground/8 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring">
        <span class="font-medium">{status.label}</span>
        <Status variant={status.variant} label={status.state} class="min-w-0 text-[0.8125rem]/5 text-muted-foreground" />
      </a>
    )}
    <div class="mt-6 flex flex-wrap items-center justify-between gap-x-5 gap-y-2 border-t border-border pt-4">
      <a href={homeHref} aria-label={`${brand} home`} class="inline-flex min-h-8 items-center rounded-md focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">
        <LogoMark name={brand} shape="square" class="text-foreground" />
      </a>
      {links.length > 0 && (
        <nav aria-label={navLabel}>
          <ul role="list" class="flex flex-wrap gap-x-4">
            {links.map((link) => <li><a href={link.href} class="inline-flex min-h-8 items-center rounded-sm text-[0.8125rem]/5 wrap-anywhere 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>
      )}
      <p class="text-[0.8125rem]/5 wrap-anywhere text-muted-foreground">{copyright}</p>
    </div>
  </div>
</footer>
```
