Department Overview Grid
A grid of company department cards. Each card shows the team lead's avatar and name, the department headcount, a badge with the number of open roles, and a View roles link.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its avatar, avatar-initials, badge, button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/department-overview-grid.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/careers/careers18.tsx instead.
Usage
The file also exports careers18Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Careers18, careers18Demo } from "@/components/blocks/careers/careers18"; export default function Page() { return <Careers18 {...careers18Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Our departments" | Section heading. |
| description | string | none | Section subheading. |
| departments | Department[] | none | Department cards to render. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Department { id: string; name: string; headcount: number; openRoles: number; lead: { name: string; role: string; avatar?: { src: string; alt: string } }; }
Behavior notes
- Fully static: no client-side state, the grid layout is CSS-only.
- The View roles button is a link (`render={<Link href="#" />}`) with a placeholder href and does not filter or navigate to a real list.
- Team lead avatars fall back to initials built from the lead's name when no avatar image is supplied.
More Careers Blocks
View all →job-listings-list
Job Listings List
A vertical list of open roles with department badge, location, employment type, and an apply link per row.
job-openings-grid
Job Openings Grid
A responsive card grid of open roles with department badge, location, employment type, and an apply link.
department-grouped-positions
Department-Grouped Positions
Open jobs grouped under department headings with minimal single-line rows for title, location, and type.
perks-open-positions
Perks & Open Positions
A benefits icon grid followed by a list of open positions with title, department, and location.
featured-role-with-positions
Featured Role with Positions
A larger featured job card with a 'Hiring now' badge, followed by a compact list of additional openings.
tab-filtered-job-board
Tab-Filtered Job Board
Department tabs (All/Engineering/Design/Marketing) that filter which job list is shown.