Skip to content
Klarhimmel UI

Logos, row around heading

Logos, row around heading previewLogos, row around heading preview

Install

npx shadcn add https://ui.klarhimmel.com/r/logos-row-around-heading.json
DetailsAbout, usage, props and more

A centred row of logos on top, then a centred heading with one action beneath it, and optionally a second logo row under the action. Logos wrap on a phone.

Import

Import

import Block from '@/components/klarhimmel/blocks/logos-row-around-heading';
Also called
  • logo-cloud/row-around-heading
Category
Who already uses it, as a quiet row or grid of logos. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it when the logos should lead and a short statement with one action follows, as in a trust bar that turns into a call to act. Pick logos-strip when the logos sit under a small lead-in and no action follows, and cta-minimal when there are no logos at all.

Writing for it

- Logos: 3 to 8 pictures per row, each with alt text that names the company. - Title: one line, up to 80 characters, set centred in a narrow column. - Second row under the action is optional, up to 8 logos; turn on large for the bigger heading and logos.

Watch out for

Rows of unequal logo counts look lopsided, so keep both rows the same length, and give every logo a transparent or matching background so the muted tone reads as one family.

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 LogosRowAroundHeading from '@/components/klarhimmel/blocks/logos-row-around-heading';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <LogosRowAroundHeading props={{
          "logos": [
            {
              "media": {
                "src": "/pictures/logo-kustboken.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-kustboken-dark.svg"
              }
            },
            {
              "media": {
                "src": "/pictures/logo-lindholmen-logistik.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-lindholmen-logistik-dark.svg"
              }
            },
            {
              "media": {
                "src": "/pictures/logo-sa-vena-s-bygg.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-sa-vena-s-bygg-dark.svg"
              }
            },
            {
              "media": {
                "src": "/pictures/logo-stigfinnaren.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-stigfinnaren-dark.svg"
              }
            },
            {
              "media": {
                "src": "/pictures/logo-te-tid.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-te-tid-dark.svg"
              }
            }
          ],
          "title": "Say what the logos above stand for",
          "cta": {
            "label": "Main action",
            "href": "#start"
          },
          "logosBelow": [],
          "large": false
        }} />
      </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
logos{ media }[]5 itemsList of 3 to 8. Each item: media.
titlestring'Say what the logos above stand for'Text, up to 80 characters.
ctaLink{…}See the type.
logosBelow{ media }[]0 itemsList of up to 8. Each item: media.
largebooleanfalseSee the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.