Team, by department


Install
npx shadcn add @klarhimmel/team-departmentsDetailsAbout, 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
- 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
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name a topic' | Text, up to 60 characters. |
title | string | 'Say how big the team is' | Text, up to 120 characters. |
description | string | 'Say in one sentence where the team …' | Text, up to 300 characters. |
departments | { name, members }[] | 4 items | List of 2 to 4. Each item: name, members. |
hiring | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |