Site footer
A website footer with link columns and newsletter, a minimal layout, and a large fading animui mark.
npm install https://animui.stracture.net/__local/package.tgz- The closing section of a marketing, docs, or product site.
- Footers that need a newsletter signup and a status link.
- Minimal one-row footers for app shells and docs.
- Use a plain row with breadcrumb or links inside signed-in app screens.
- Use contact-section when the main goal is to start a conversation.
Installation
Install animui once, then import any component or block from its typed package entry.
React 19 and React DOM 19 are required. The package includes Free and Pro entries, styles and TypeScript declarations.
npm install https://animui.stracture.net/__local/package.tgzLoad the stylesheet once at your app root, then use the typed component import:
import 'animui/styles.css';
import { SiteFooter } from 'animui/site-footer';Read the Code tab for the implementation files and the API reference below for required props.
Download animui 0.3.0 · Agent guideUsage
Use this as a starting point and replace the sample data with your own.
import { SiteFooter } from "animui/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
3 parts. The first is the root.
SiteFooter
A site footer in three variants: link columns with a newsletter, one minimal row, or a closing large brand mark.
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: "animui" }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
labelRequiredstring–Link text.hrefstring–Destination.externalboolean–Opens in a new tab and shows an outward arrow.SiteFooterBlock
Default export: a preview with a layout switcher.
variantSiteFooterVariant"columns"Initial variant.- Renders a footer landmark with labelled link groups.
- The newsletter validates in place with a message tied to the field, and confirms without a toast.
- External links show an outward arrow and open in a new tab.
- Status tone is paired with its label, not shown by color alone.
- The subscribe button morphs to its confirmed state while the form keeps its width.
- The logo variant's large mark fades toward the bottom edge.
- Reduced motion swaps states without travel.
- Container queries: below 760px the newsletter stacks above the columns; below 520px columns become two per row and the bottom row stacks.
- Link rows wrap rather than truncate.
- Static markup apart from the newsletter form; no observers or timers.
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Defaults are animui sample content; pass brand, columns, legal, socials, and newsletter for real sites.
- Pass newsletter={null} and status={null} when you have no backend for them.
- Composes animui Button and SegmentedControl.
The full library index for assistants is at /llms.txt.