Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Web docs
Navigation

SiteFooter

Lays out a website footer with brand, navigation groups, and a legal row.

Frameworks
Astro · React · Elements · Dioxus
Registry
lumen add SiteFooter
Interaction
Native markup
01

See it and copy it

Framework example

Choose Astro, React, Elements, or Dioxus to compare native usage against the shared visual output. Each example assumes the framework-level setup is already complete.

AstroCode target · live preview uses Astro
View SiteFooter code

Framework usage

Switch targets to compare the adapter code. This live preview runs the Astro example. Before copying an example, complete the matching framework setup; React, Elements, and Dioxus use their own behavior APIs.Width controls resize the preview container. Resize your browser to test viewport breakpoints.
astro
---
import { SiteFooter } from '@santi020k/lumen-astro'
---

<SiteFooter navLabel="Example footer" style="border: 1px solid hsl(var(--line)); border-radius: var(--ui-radius-lg);">
  <a slot="brand" href="/docs">Acme</a>
  <p slot="brand">Tools for small teams that ship every day.</p>
  <div data-slot="site-footer-group">
    <h2>Product</h2>
    <ul>
      <li><a href="/docs">Docs</a></li>
      <li><a href="/docs">Changelog</a></li>
    </ul>
  </div>
  <div data-slot="site-footer-group">
    <h2>Company</h2>
    <ul>
      <li><a href="/docs">About</a></li>
      <li><a href="/docs">Contact</a></li>
    </ul>
  </div>
  <p slot="legal">© 2026 Acme</p>
  <p slot="legal">Built with <a href="https://lumen.santi020k.com">Lumen</a></p>
</SiteFooter>
Edit SiteFooter in browser
02

Choose your target

Add this component

Choose the package for your runtime. All adapters share the Lumen stylesheet. Use the matching registry command when you want a local wrapper for that framework.

API reference

Lumen-specific props and runtime attributes for the Astro primitive. Use the framework differences above and the copyable examples for React composition and Elements attributes; the public adapter types define their supported contracts.

AttributeValuesDefaultDescription
brandAstro slot | ReactNode | data-slot="site-footer-brand"-Logo lockup and a short description shown before the navigation groups.
children / default slotnavigation groups-Each group is an element with data-slot="site-footer-group" holding a heading followed by a list of links. The groups render inside a nav landmark.
legalAstro slot | ReactNode | data-slot="site-footer-legal"-Bottom row for the copyright notice and attribution links.
navLabelstring"Footer"Names the footer navigation landmark. Elements use nav-label.
role (Elements)"contentinfo" | nonecontentinfo outside sectioning contentLike a native footer, lumen-site-footer is a contentinfo landmark only when it is not inside article, aside, main, nav, or section. An authored role wins.
class, classNamestring""Merges custom classes with the generated ui-* root classes.
...native attributesHTML attributes-Forwards standard attributes to the root element unless the component consumes them.

Customize SiteFooter

Start with semantic theme tokens and a class on the public component. Keep its accessible name, focus treatment, and interaction state intact.

cssScoped theme overrides
.product-site-footer {
  --surface: 0 0% 100%;
  --ink: 220 20% 15%;
  --line: 220 15% 82%;
}

Apply product-site-footer through Astro's class, React's className, or the custom element's class. Verify foreground and background contrast in both schemes.

HookValuesDefaultContract
class, classNamestring""Merges custom classes with the generated ui-* root classes.

Use the documented hooks above and adapter types when targeting component states. Theme guide · Accessibility verification scope


Web docsFull catalog