# Team, by department

- **[Sections](/blocks/)**
- **[Team](/blocks/team/)**
- **Team, by department**

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

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/team-departments
  ```
- **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.

## Pairs well with

- **[About, timeline](/blocks/content/timeline)**
- **[Call to action, band](/blocks/cta/banner)**
- **[Stats row](/blocks/stats/row)**

## 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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **departments**: List of 2 to 4. Each item: name, members.
- **hiring**: See the type.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/contact/visual-panel)

[Next](/blocks/team/featured)
