Skip to content
Klarhimmel UI

Footer, columns

Footer, columns previewFooter, columns preview

Install

npx shadcn add @klarhimmel/footer-columns
DetailsAbout, usage, props and more

Up to six link columns, with a brand column or a full-width SVG wordmark below, an optional newsletter form, an optional contact block (address, hours), social links…

Import

Import

import Block from '@/components/klarhimmel/blocks/footer-columns';
Also called
  • footer/link-columns
About
Up to six link columns, with a brand column or a full-width SVG wordmark below, an optional newsletter form, an optional contact block (address, hours), social links, badges and one button, an optional family row of sister sites and a…
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 full site footer with brand and tagline beside up to four columns of links, an optional newsletter form and a legal row. Use footer-simple for a small site, or footer-cta when the footer should also carry a final ask.

Writing for it

- Each column has a title of up to 40 characters and up to eight links. Use brandLayout: 'wordmark' for full-width columns followed by one SVG logo row above the legal divider; this removes the brand/tagline column. - The newsletter block is optional. If you include it, the placeholder and submit text are required and the note under it holds 160 characters. - Legal links take up to six items beside the legal text. Privacy and Terms usually go there, and some sites add social links as the default does.

Watch out for

Column titles render as h2 elements, which add to the page outline in every page that uses this footer. The grid sets its width from the number of columns, so with only one or two columns the links bunch up on the left.

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 FooterColumns from '@/components/klarhimmel/blocks/footer-columns';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FooterColumns props={{
          "brand": "Brand name",
          "tagline": "Say what you do in one line.",
          "columns": [
            {
              "title": "First group",
              "links": [
                {
                  "label": "First page",
                  "href": "#features"
                },
                {
                  "label": "Second page",
                  "href": "#pricing"
                }
              ]
            },
            {
              "title": "Second group",
              "links": [
                {
                  "label": "First page",
                  "href": "#about"
                },
                {
                  "label": "Second page",
                  "href": "#careers"
                }
              ]
            }
          ],
          "legal": "© 0000 Company name. All rights reserved.",
          "newsletter": {
            "title": "Say why to subscribe",
            "placeholder": "Your email",
            "submit": "Subscribe",
            "note": "Say how often you write and that they can leave."
          },
          "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.

PropTypeDefaultDescription
brandstring'Brand name'Text, up to 40 characters.
brandLayout'column' | 'wordmark' | 'links'-One of 'column', 'wordmark', 'links'. Optional; empty is not rendered.
mark{ paths, viewBox, src }-Fields: paths (optional), viewBox (optional), src (optional). Optional; empty is not rendered.
logoMedia-Optional; empty is not rendered.
taglinestring'Say what you do in one line.'Text, up to 400 characters.
columns{ title, links }[]3 itemsList of up to 6. Each item: title (optional), links.
legalstring'© 0000 Company name. All rights res…'Text, up to 120 characters.
currentstring-Text, up to 300 characters. Optional; empty is not rendered.
contact{ title, lines }-Fields: title (optional), lines (optional). Optional; empty is not rendered.
social{ label, href, icon }[]-List of up to 8. Each item: label, href, icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge') (optional). Optional; empty is not rendered.
badges{ media, href }[]-List of up to 6. Each item: media, href (optional). Optional; empty is not rendered.
actionLink-Optional; empty is not rendered.
newsletter{ title, placeholder, submit, note, action, method, hidden, captcha, captchaSite{…}Fields: title (optional), placeholder, submit, note, action (optional), method ('post' | 'get') (optional), hidden (optional), captcha (optional), captchaSitekey (optional). Optional; empty is not rendered.
legalLinksLink[]4 itemsList of up to 6. Optional; empty is not rendered.
family{ label, links }-Fields: label (optional), links (optional). Optional; empty is not rendered.