Skip to content

Site Footer

Brand and blurb, link columns, a newsletter form, socials, a status line, a theme switch and the legal row. Columns fold into accordions on phones.

On this page
Used for
  • Marketing site footer
  • Docs footer links
  • Status line in footer
  • Newsletter sign-up

Examples

Installation

npx knowns-ui@latest add site-footer
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

brand / blurb
ReactNode
Top left, above the newsletter.
columns
{ title, links }[]
3 to 5 columns from 640px; accordions below.
newsletter
{ onSubscribe, title?, description?, placeholder?, button?, thanks? }
Checks the address shape, shows a spinner while onSubscribe runs, then the thanks line; a thrown message shows under the field.
socials
{ href, kind?, label?, icon? }[]
Default[]
Icon links opened in a new tab. kind is optional: the platform (Discord, X, GitHub, LinkedIn, YouTube and more) is detected from the URL and names the link. kind, label and icon override.
status
{ state?: "operational" | "degraded" | "outage", label?, href? }
A dot and a line such as All systems normal, linked to your status page.
theme
{ value: "light" | "dark" | "system", onChange }
A Segmented Control.
copyright / legal
ReactNode / NavLink[]
The bottom row.
onNavigate
(href, event) => void
Every internal link click.

What it handles

  1. 01Sets the brand and a blurb on the left and 3 to 5 link columns on the right, with the grid adapting to the number of columns.
  2. 02Folds the columns into multiple-open accordions below 640px, with taller rows for touch.
  3. 03Includes a newsletter mini-form: onSubscribe resolves to show the thanks line and a thrown message shows as an alert under the field.
  4. 04Checks the address with looksLikeEmail before calling onSubscribe, and keeps a reserved line for the error so the layout does not jump.
  5. 05Shows a status line from operational, degraded or outage with a still coloured dot, optionally linked to your status page.
  6. 06Detects the platform of each social link from its URL, adds a Light, Dark or System switch through theme, and ends with a copyright and a legal row.

States

First render
Nothing. The footer paints as it is
none
Link hover or focus
The link colour changes
120ms, ease out
Column accordion on a phone
The column's links open or close
180ms, ease out
Subscribing
The button shows its loading state
none
Subscribed or failed
The form is replaced by the thanks line, or the error appears in the reserved line
none, at once
Status dot
The dot stays still for every state
none
Reduced motion
The accordion opens at once
0ms

Works with

When to use

When to use

  • The bottom of a marketing site: link columns, a newsletter sign-up, socials, a status line and the legal row.
  • Docs and product sites that need the same links on phones without a long scroll: columns fold into accordions.

When not to use

  • Footers inside app screens: keep those to a line of help links.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Site Footer to my app and wire it to my own data.
  • I need the bottom of a marketing site: link columns, a newsletter sign-up, socials, a status line and the legal row. Set that up with the Knowns UI Site Footer.
  • Which Site Footer props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "site-footer" }) and search_docs({ query: "site footer" }).

Need help?

Stuck on Site Footer, or found something off? We read every message.