# Footer, with a call to action

- **[Sections](/blocks/)**
- **[Footer](/blocks/footer/)**
- **Footer, with a call to action**

A footer that opens with one last ask: a large headline, a sentence and two buttons on a tinted panel, then the brand, two to four link columns and the legal row.

## Import

- **CLI**

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

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

Also called

- footer/cta

- **About**: A footer that opens with one last ask: a large headline, a sentence and two buttons on a tinted panel, then the brand, two to four link columns and the legal row. Saves a separate call-to-action section on short pages.
- **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 footer that opens with a tinted panel holding a headline, a sentence and two buttons, then brand, link columns and legal row. It saves a separate call-to-action section on short pages; on long pages `cta-band` plus `footer-columns` reads cleaner.
- **Writing for it**: - The ctaTitle is required and holds 100 characters. Make it the single next step, such as booking a demo, not a general slogan.
- Both buttons are links: cta is primary and secondary is the quieter one. Give the secondary a different, lower-commitment action.
- Use two to four columns, each with a required title and up to six links. The brand name has its own required field of up to 40 characters.
- **Watch out for**: Columns must be at least two, otherwise validation fails, and every column needs a title. The ctaText line is hidden when empty. The headline is an h2, so a page that also ends with `cta-band` will show two final asks.

## Pairs well with

- **[Pricing, three tiers](/blocks/pricing/tiers)**
- **[FAQ, list](/blocks/faq/accordion)**
- **[Testimonials, wall](/blocks/testimonials/wall)**

## 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 FooterCta from '@/components/klarhimmel/blocks/footer-cta';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FooterCta props={{
          "brand": "Brand name",
          "ctaTitle": "Name the next step you want",
          "ctaText": "Say what the visitor gets and what starting costs them.",
          "cta": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          },
          "columns": [
            {
              "title": "First group",
              "links": [
                {
                  "label": "First page",
                  "href": "#product"
                },
                {
                  "label": "Second page",
                  "href": "#calendar"
                }
              ]
            },
            {
              "title": "Second group",
              "links": [
                {
                  "label": "First page",
                  "href": "#about"
                },
                {
                  "label": "Second page",
                  "href": "#journal"
                }
              ]
            }
          ],
          "legal": "© 0000 Company name",
          "legalLinks": [
            {
              "label": "Privacy",
              "href": "#privacy"
            },
            {
              "label": "Terms",
              "href": "#terms"
            }
          ]
        }} />
      </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.
- **mark**: Fields: paths (optional), viewBox (optional), src (optional). Optional; empty is not rendered.
- **ctaTitle**: Text, up to 100 characters.
- **ctaText**: Text, up to 200 characters.
- **cta**: See the type.
- **secondary**: See the type.
- **columns**: List of 2 to 4. Each item: title, links.
- **legal**: Text, up to 120 characters.
- **legalLinks**: List of up to 4.

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

[Next](/blocks/footer/simple)
