Skip to content
Klarhimmel UI
Logos, grid previewLogos, grid preview

Install

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

A hairline grid of up to 48 logo cells. Each cell shows its image, or the name set as a wordmark while there is no image.

Import

Import

import Block from '@/components/klarhimmel/blocks/logos-grid';
Also called
  • logo-cloud/grid
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

A hairline grid of logos for a long customer or partner list, up to twelve cells. For a single row of names use logos-strip, and for logos split into categories use logos-grouped.

Writing for it

- Logos take two to twelve entries, and the grid reads best when the count fills whole rows, so ten or twelve looks more finished than eleven. - Each logo needs a name (40) even with an image, since it becomes the accessible text. Use the company's own spelling. - The title holds 80 characters and the description 300; a short claim such as the number of teams using the product is enough above the grid.

Watch out for

A cell without an image shows the name as a typeset wordmark, with a different typeface per position. A grid of only wordmarks reads as a list of names, not as proof.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <LogosGrid props={{
          "title": "Say who relies on you in one line",
          "description": "Say in a sentence or two who your customers are and what they use you for.",
          "logos": [
            {
              "name": "First logo",
              "media": {
                "src": "/pictures/logo-lindholmen-logistik.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-lindholmen-logistik-dark.svg"
              }
            },
            {
              "name": "Second logo",
              "media": {
                "src": "/pictures/logo-sa-vena-s-bygg.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-sa-vena-s-bygg-dark.svg"
              }
            },
            {
              "name": "Third logo",
              "media": {
                "src": "/pictures/logo-stigfinnaren.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-stigfinnaren-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.
descriptionstring'Say in a sentence or two who your c…'Text, up to 300 characters.
actionLink-Optional; empty is not rendered.
wideboolean-Optional; empty is not rendered.
logos{ name, media, href }[]8 itemsList of 2 to 48. Each item: name (optional), media, href (optional).
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.