SiteFooter
Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.
Design intent
Footers are copied between projects with inconsistent link handling. SiteFooter provides the standard multi-column layout, safe external links and a legal row.
npx @slipstream-ui/cli@latest add site-footerProps
| Prop | Type | Default | Description |
|---|---|---|---|
| brand | ReactNode | — | Brand slot. |
| tagline | string | — | Short line under the brand. |
| columns | SiteFooterColumn[] | required | Link columns: { title, links: { label, href, external? }[] }. |
| legal | ReactNode | — | Bottom bar (copyright, legal links). |
| linkComponent | React.ElementType | — | Router link element. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop used to pass the destination to linkComponent. |
| activeHref | string | — | Current route; marks the matching link aria-current="page". |
| match | 'prefix' | 'exact' | 'prefix' | Prefix matching highlights /docs when on /docs/installation. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't duplicate the same links in two columns
Keep each destination in exactly one column for predictable scanning.
tsx// Avoid: Docs in Product and Resources
Accessibility
- Renders a <footer> landmark with headed link groups.
- External links get target=_blank + rel=noopener.
Content guidelines
Column titles
- Nouns
- 3-8 items per column
Good examples
- Product
- Legal
- Community
Bad examples
- Links
Composition
Compose with SiteHeader: Pair for a complete marketing shell
<SiteHeader … />…<SiteFooter … />
Related components: SiteHeader, Link, Separator
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.