Skip to content
Klarhimmel UI

Team, by department

Team, by department previewTeam, by department preview

Install

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

No photos: names and roles listed in columns under department headings, for companies too big for portraits. Optional link to open roles.

Import

Import

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

Notes

When to use it

Lists a larger company as names and roles in columns under department headings, with no portraits. When you have eight people or fewer and want faces, team-grid or team-list fits better.

Writing for it

- Give each department a short name of up to 40 characters, such as Product or Customers. The name becomes an h3 and the column's accessible label. - A department takes one to eight members and the block takes two to four departments. Put the biggest team first, since the columns read left to right. - Keep the role to a plain job title within 60 characters. The title line can carry the headcount, as in the default '12 people in four teams'.

Watch out for

The optional hiring link only renders when its label is filled, so clearing the label removes the link entirely. Column count follows the number of departments: with two, the grid stays at two columns at any width, so a short list of departments can look sparse.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <TeamDepartments props={{
          "eyebrow": "Name a topic",
          "title": "Say how big the team is",
          "description": "Say in one sentence where the team works and what it has in common.",
          "departments": [
            {
              "name": "First team",
              "members": [
                {
                  "name": "Name a person",
                  "role": "Their role"
                },
                {
                  "name": "Name a person",
                  "role": "Their role"
                }
              ]
            },
            {
              "name": "Second team",
              "members": [
                {
                  "name": "Name a person",
                  "role": "Their role"
                },
                {
                  "name": "Name a person",
                  "role": "Their role"
                }
              ]
            }
          ],
          "hiring": {
            "label": "Main action",
            "href": "/careers"
          }
        }} />
      </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 how big the team is'Text, up to 120 characters.
descriptionstring'Say in one sentence where the team …'Text, up to 300 characters.
departments{ name, members }[]4 itemsList of 2 to 4. Each item: name, members.
hiringLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.