Staaarter

Diversity & Inclusion

A diversity and inclusion section: a row of representation stat cards up top, followed by a grid of initiative cards (employee resource groups, inclusive hiring, pay equity audits, and more), each with an icon, title, and short description.

By Staaarter Team
Careers
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/diversity-inclusion.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/careers/careers20.tsx instead.

Usage

The file also exports careers20Demo, 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 { Careers20, careers20Demo } from "@/components/blocks/careers/careers20";

export default function Page() {
  return <Careers20 {...careers20Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Diversity & Inclusion"Section heading.
descriptionstringnoneSection subheading.
statsRepresentationStat[]noneRepresentation stat cards.
initiativesInitiative[]noneD&I initiative cards.
classNamestringnoneExtra classes for the outer section element.

Types

interface RepresentationStat {
  label: string;
  value: string;
}

type InitiativeIcon = "users" | "handshake" | "scale" | "heart";

interface Initiative {
  icon: InitiativeIcon;
  title: string;
  description: string;
}

Behavior notes

  • Fully static: no client-side state.
  • The initiative icon is chosen from a small fixed set (`users` | `handshake` | `scale` | `heart`) mapped inside the component; icons cannot be passed as component values from demo data.