Skip to content
Klarhimmel UI

Logos, heading beside grid

Logos, heading beside grid previewLogos, heading beside grid preview

Install

npx shadcn add @klarhimmel/logos-split-grid
DetailsAbout, usage, props and more

Two columns: the heading with up to two actions on the left, a grid of framed logo tiles on the right (two across on a phone, three on a wide container).

Import

Import

import Block from '@/components/klarhimmel/blocks/logos-split-grid';
Also called
  • logo-cloud/split-grid
About
Two columns: the heading with up to two actions on the left, a grid of framed logo tiles on the right (two across on a phone, three on a wide container). Names without artwork are set as wordmarks.
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 support a short pitch and the heading and its buttons should sit beside the wall rather than over it. For a centred heading over a full-width wall pick logos-grid; for a quote with a few logos pick logos-featured.

Writing for it

- Title up to 80 characters, one line that names who relies on you. - Two to twelve logos, each with a picture and an optional name up to 40 characters. - Up to two actions: a main one and a quieter one, both optional.

Watch out for

Six or nine logos fill the grid evenly; a count of seven or ten leaves a gap in the last row. Logos with very different aspect ratios look uneven in the tiles, so crop them to a similar width first.

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 LogosSplitGrid from '@/components/klarhimmel/blocks/logos-split-grid';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <LogosSplitGrid props={{
          "title": "Say who relies on you in one line",
          "action": {
            "label": "Name the main action",
            "href": "#primary"
          },
          "secondaryAction": {
            "label": "Name the quieter action",
            "href": "#secondary"
          },
          "logos": [
            {
              "name": "First logo",
              "media": {
                "src": "/pictures/logo-hallbergs-verkstad.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-hallbergs-verkstad-dark.svg"
              }
            },
            {
              "name": "Second logo",
              "media": {
                "src": "/pictures/logo-keramikfesten.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-keramikfesten-dark.svg"
              }
            },
            {
              "name": "Third logo",
              "media": {
                "src": "/pictures/logo-kullen-livs.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-kullen-livs-dark.svg"
              }
            }
          ]
        }} />
      </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
titlestring'Say who relies on you in one line'Text, up to 80 characters.
actionLink{…}Optional; empty is not rendered.
secondaryActionLink{…}Optional; empty is not rendered.
logos{ name, media, href }[]6 itemsList of 2 to 12. Each item: name (optional), media, href (optional).
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.