# Footer, centered

- **[Sections](/blocks/)**
- **[Footer](/blocks/footer/)**
- **Footer, centered**

A centred footer: brand and one-line tagline, a row of page links, a row of social links, then the legal line.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/footer-centered
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/footer-centered';
  ```

Also called

- footer/centered

- **About**: A centred footer: brand and one-line tagline, a row of page links, a row of social links, then the legal line. For sites with five or six pages and no need for link columns.
- **Category**: The end of every page: links, legal, an optional sign-up. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A centred footer with brand, one-line tagline, a row of page links, a row of social links and a legal line. Use it for sites with five or six pages; when you need grouped link columns, `footer-columns` fits better.
- **Writing for it**: - Pick one to six page links and up to four social links. The social row can be left out by deleting every entry.
- The tagline holds 160 characters but sits on one centred line, so write what the company does in one plain sentence.
- The legal line holds 160 characters and goes under a divider. Put the year and the registered company name there.
- **Watch out for**: A link with an empty label is dropped from the page, so a half-filled link will not show up as a blank tab stop. If both link rows end up empty, the space they used collapses.

## Pairs well with

- **[Call to action, minimal](/blocks/cta/minimal)**
- **[Newsletter, inline](/blocks/newsletter/inline)**
- **[Contact, minimal](/blocks/contact/minimal)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import FooterCentered from '@/components/klarhimmel/blocks/footer-centered';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FooterCentered props={{
          "brand": "Brand name",
          "tagline": "Say what you do in one line.",
          "links": [
            {
              "label": "First page",
              "href": "/product"
            },
            {
              "label": "Second page",
              "href": "/pricing"
            },
            {
              "label": "Third page",
              "href": "/customers"
            },
            {
              "label": "Fourth page",
              "href": "/help"
            },
            {
              "label": "Fifth page",
              "href": "/contact"
            }
          ],
          "social": [
            {
              "label": "First profile",
              "href": "https://example.com/linkedin"
            },
            {
              "label": "Second profile",
              "href": "https://example.com/instagram"
            },
            {
              "label": "Third profile",
              "href": "https://example.com/youtube"
            }
          ],
          "legal": "© 0000 Company name. All rights reserved."
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **brand**: Text, up to 40 characters.
- **tagline**: Text, up to 160 characters.
- **links**: List of 1 to 6.
- **social**: List of up to 4.
- **legal**: Text, up to 160 characters.

[Previous](/blocks/snapshot/sources)

[Next](/blocks/footer/link-columns)
