Skip to content
Klarhimmel UI

Logos, heading tile

Logos, heading tile previewLogos, heading tile preview

Install

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

One hairline-framed grid in which the first tile holds the heading and an action and the rest hold logos (three across on a wide container, two on a phone, the heading…

Import

Import

import Block from '@/components/klarhimmel/blocks/logos-tile-heading';
Also called
  • logo-cloud/tile-heading
About
One hairline-framed grid in which the first tile holds the heading and an action and the rest hold logos (three across on a wide container, two on a phone, the heading tile full width). 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 heading should be one cell of the logo grid itself, so the whole block reads as a single framed object. For a heading beside a separate grid pick logos-split-grid; for a plain wall under a centred heading pick logos-grid.

Writing for it

- Title up to 80 characters; it shares a tile with one action, so keep it short. - Two to eleven logos, each with a picture and an optional name up to 40 characters. - One optional action under the title.

Watch out for

Five logos fill the three-across grid exactly; other counts leave empty cells in the last row, which show the frame colour. Keep the title under two lines or the first tile grows taller than its neighbours.

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 LogosTileHeading from '@/components/klarhimmel/blocks/logos-tile-heading';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <LogosTileHeading props={{
          "title": "Say who relies on you in one line",
          "action": {
            "label": "Name the main action",
            "href": "#primary"
          },
          "logos": [
            {
              "name": "First logo",
              "media": {
                "src": "/pictures/logo-sa-vena-s-bygg.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-sa-vena-s-bygg-dark.svg"
              }
            },
            {
              "name": "Second logo",
              "media": {
                "src": "/pictures/logo-stigfinnaren.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-stigfinnaren-dark.svg"
              }
            },
            {
              "name": "Third logo",
              "media": {
                "src": "/pictures/logo-te-tid.svg",
                "alt": "A company logo",
                "srcDark": "/pictures/logo-te-tid-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.
logos{ name, media, href }[]5 itemsList of 2 to 11. Each item: name (optional), media, href (optional).
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.