Skip to content
Klarhimmel UI

Team, list

Team, list previewTeam, list preview

Install

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

People as rows: portrait, name and role, a longer bio and one link. Reads like a directory, good for eight people or fewer with something to say.

Import

Import

import Block from '@/components/klarhimmel/blocks/team-list';
Also called
  • team/list
About
People as rows: portrait, name and role, a longer bio and one link. Reads like a directory, good for eight people or fewer with something to say. Leave the link label empty to drop the link.
Category
The people behind it. New project? Set it up once: /get-started/installation.

Notes

When to use it

People as directory rows with portrait, name, role, location, a longer bio and one link each. Use it for eight people or fewer who have something to say; for quick faces with short bios team-grid is lighter.

Writing for it

- The bio allows 240 characters. Lead with what the person handles, then one detail that makes them a person. - Use the location field (40 characters) for a city or 'Remote'. It sits small under the role and disappears when empty. - Make the link do something specific, such as 'Write to Elin' or 'Read his notes'. A link label is up to the field's own limit, and an empty label drops the link for that row.

Watch out for

On wide containers the row turns into four columns, and the link is pushed to the far right. A row with no link keeps its place but shows a gap there, so mixing rows with and without links looks uneven.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TeamList props={{
          "eyebrow": "Name a topic",
          "title": "Say who they will talk to",
          "description": "Say in one or two sentences how many people there are and how they help customers.",
          "members": [
            {
              "name": "Name a person",
              "role": "Their role and focus",
              "location": "Name a place",
              "bio": "Say what they do day to day and what they care about. Add what in their past still shapes how they work with customers.",
              "photo": {
                "src": "/pictures/avatar-5.svg",
                "alt": "A portrait of a person",
                "srcDark": "/pictures/avatar-5-dark.svg"
              },
              "link": {
                "label": "Main action",
                "href": "mailto:elin@example.com"
              }
            },
            {
              "name": "Name a person",
              "role": "Their role and focus",
              "location": "Name a place",
              "bio": "Say what they do and what they care about. Add one habit that shows how they work.",
              "photo": {
                "src": "/pictures/avatar-6.svg",
                "alt": "A portrait of a person",
                "srcDark": "/pictures/avatar-6-dark.svg"
              },
              "link": {
                "label": "Main action",
                "href": "#"
              }
            }
          ]
        }} />
      </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 they will talk to'Text, up to 120 characters.
descriptionstring'Say in one or two sentences how man…'Text, up to 300 characters.
members{ name, role, location, bio, photo, link }[]4 itemsList of 1 to 8. Each item: name, role, location, bio, photo, link.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.