Skip to content
Klarhimmel UI

Team, grid

Team, grid previewTeam, grid preview

Install

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

A heading and a grid of people with photo, name, role and a short bio.

Import

Import

import Block from '@/components/klarhimmel/blocks/team-grid';
Also called
  • team/grid
Category
The people behind it. New project? Set it up once: /get-started/installation.

Notes

When to use it

A plain grid of people, each with a square photo, name, role and a short bio. It is the default team block; choose team-list when the bios are long, or team-departments when you have no photos.

Writing for it

- The bio is capped at 200 characters, so write one sentence about what the person does for customers, not a career summary. - Put the role in plain terms, up to 60 characters. The role is shown in the accent colour right under the name, so 'Co-founder, design' reads better than a slogan. - Use between one and eight members. Four fills one row at wide widths and eight fills two clean rows.

Watch out for

Every member needs a photo, because the square image area is always drawn and an empty src leaves a placeholder frame. Each name is an h3 under the section title, so keep this block below an h2 heading.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TeamGrid props={{
          "eyebrow": "Name a topic",
          "title": "Say who the people are",
          "description": "Say in one line what the team stands for.",
          "members": [
            {
              "name": "Name a person",
              "role": "Their role and focus",
              "bio": "Say what they do and what they care about, in a line",
              "photo": {
                "src": "/pictures/avatar-1.svg",
                "alt": "A portrait of a person",
                "srcDark": "/pictures/avatar-1-dark.svg"
              }
            },
            {
              "name": "Name a person",
              "role": "Their role and focus",
              "bio": "Say what they do, in one line",
              "photo": {
                "src": "/pictures/avatar-2.svg",
                "alt": "A portrait of a person",
                "srcDark": "/pictures/avatar-2-dark.svg"
              }
            },
            {
              "name": "Name a person",
              "role": "Their role",
              "bio": "Say what they do, in a short line",
              "photo": {
                "src": "/pictures/avatar-3.svg",
                "alt": "A portrait of a person",
                "srcDark": "/pictures/avatar-3-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
eyebrowstring'Name a topic'Text, up to 60 characters.
titlestring'Say who the people are'Text, up to 120 characters.
descriptionstring'Say in one line what the team stand…'Text, up to 300 characters.
members{ name, role, bio, photo }[]4 itemsList of 1 to 8. Each item: name, role, bio, photo.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.