NavigationFooterCentered
Searchastronomic.dev# FooterCentered
For a short page or a portfolio: the brand, the links, social links and the copyright line, centered.
Static: no JavaScript.
## Usage
```astro
import FooterCentered from "@astronomic-dev/ui/components/FooterCentered.astro";
```
## Examples
### Centered, with social links
```astro
---
import FooterCentered from "@astronomic-dev/ui/components/FooterCentered.astro";
const links = [
{ label: "Work", href: "#work" },
{ label: "About", href: "#about" },
{ label: "Journal", href: "#journal" },
{ label: "Contact", href: "#contact" },
];
const socials = [
{ label: "Instagram", href: "https://instagram.com", target: "_blank" },
{ label: "LinkedIn", href: "https://linkedin.com", target: "_blank" },
];
---
<FooterCentered links={links} socials={socials} label="Halden Studio footer" socialsLabel="Halden Studio elsewhere">
<a slot="brand" href="#" class="text-inherit no-underline">Halden Studio</a>
<p slot="legal" class="m-0">© 2026 Halden Studio</p>
</FooterCentered>
```
## Props
### FooterCentered
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `links` | `NavLink[]` | None | Required. The links, in a centered row. NavLink is { label, href, current?, target?, index? }. |
| `socials` | `NavLink[]` | `[]` | Social links, in a centered row of their own under the links. |
| `label` | `string` | `"Footer"` | Accessible name of the links' navigation. |
| `socialsLabel` | `string` | `"Social links"` | Accessible name of the social links' navigation. |
| `class` | `string` | None | More classes, merged with cn(), so yours win on conflicts. |
| `contentClass` | `string` | None | Classes for the inner column, for example a max width that matches the page container. |
| Slot | Description |
| --- | --- |
| `brand` | The logo or site name, on top. |
| `legal` | The copyright or legal line, last. |
Any other attribute goes on the <footer>.
## Accessibility
- Renders a <footer> with up to two <nav> landmarks: the links, named by label, and the social links, named by socialsLabel. Give each a distinct name.
- A link with current set gets aria-current="page".
- A social link that opens a new tab (target="_blank") gets rel="noopener noreferrer". Say so in the label if it matters to your readers.
FooterCentered
FreeFor a short page or a portfolio: the brand, the links, social links and the copyright line, centered.
- File
- FooterCentered.astro
- Group
- Navigation
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Centered, with social links
Minimal · Light