Skip to content
Klarhimmel UI

Footer, simple

Footer, simple previewFooter, simple preview

Install

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

One quiet row: brand, a few links and a legal line.

Import

Import

import Block from '@/components/klarhimmel/blocks/footer-simple';
Also called
  • footer/simple
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

One quiet row: brand with an optional logo mark, a few links and a legal line. Right for a landing page or small site; use footer-columns when there are more than six pages.

Writing for it

- Give it at most six links. They sit in the middle on wide containers and wrap under the brand on narrow ones. - The legal field holds 120 characters. Year and company name are enough, with the privacy link as one of the links. - Add the logo field only if the navbar uses the same mark. It is shown before the brand text, so the footer matches the header.

Watch out for

The brand holds 40 characters but shares one row with links and the legal line, so a long brand wraps onto a second line. Links with an empty label are removed, which means clearing every label leaves only brand and legal.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FooterSimple props={{
          "brand": "Brand name",
          "links": [
            {
              "label": "First page",
              "href": "#product"
            },
            {
              "label": "Second page",
              "href": "#pricing"
            },
            {
              "label": "Third page",
              "href": "#docs"
            },
            {
              "label": "Fourth page",
              "href": "#contact"
            }
          ],
          "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.

PropTypeDefaultDescription
brandstring'Brand name'Text, up to 40 characters.
mark{ paths, viewBox, src }-Fields: paths (optional), viewBox (optional), src (optional). Optional; empty is not rendered.
logoMedia-Optional; empty is not rendered.
linksLink[]4 itemsList of up to 6.
legalstring'© 0000 Company name. All rights res…'Text, up to 120 characters.
currentstring-Text, up to 300 characters. Optional; empty is not rendered.