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
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.
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.---
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>import type { CSSProperties } from 'react'
import { SiteFooter } from '@santi020k/lumen-react'
const exampleStyle0: CSSProperties & Record<`--${string}`, string | number> = { "border": "1px solid hsl(var(--line))", "borderRadius": "var(--ui-radius-lg)" }
export const Example = () => (
<>
<SiteFooter navLabel="Example footer" style={exampleStyle0}>
<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>
</>
)<script type="module">
import { defineLumenElements } from '@santi020k/lumen-elements/define'
defineLumenElements()
</script>
<lumen-site-footer nav-label="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>
</lumen-site-footer>use dioxus::prelude::*;
use lumen_dioxus::prelude::*;
#[component]
fn Example() -> Element {
rsx! {
SiteFooter {
brand: rsx! { strong { "Lumen" } },
legal: rsx! { Link { href: "https://santi020k.com", "santi020k" } },
div { "data-slot": "site-footer-group",
h2 { "Docs" }
ul {
li { a { href: "/docs", "Getting started" } }
}
}
}
}
}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.
| Attribute | Values | Default | Description |
|---|---|---|---|
| brand | Astro slot | ReactNode | data-slot="site-footer-brand" | - | Logo lockup and a short description shown before the navigation groups. |
| children / default slot | navigation 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. |
| legal | Astro slot | ReactNode | data-slot="site-footer-legal" | - | Bottom row for the copyright notice and attribution links. |
| navLabel | string | "Footer" | Names the footer navigation landmark. Elements use nav-label. |
| role (Elements) | "contentinfo" | none | contentinfo outside sectioning content | Like 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, className | string | "" | Merges custom classes with the generated ui-* root classes. |
| ...native attributes | HTML 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.
.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.
| Hook | Values | Default | Contract |
|---|---|---|---|
| class, className | string | "" | 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