Staaarter

Compensation & Total Rewards

A total-rewards overview with four cards: Salary, Equity, Bonus, and Perks, each with an icon and short description. The Equity card is visually featured with an accent border and a short philosophy statement.

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/compensation-total-rewards.json

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

Usage

The file also exports careers21Demo, 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 { Careers21, careers21Demo } from "@/components/blocks/careers/careers21";

export default function Page() {
  return <Careers21 {...careers21Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Compensation & Total Rewards"Section heading.
descriptionstringnoneSection subheading.
rewardsRewardCard[]noneReward cards; set featured: true on exactly one to highlight it.
classNamestringnoneExtra classes for the outer section element.

Types

type RewardIcon = "salary" | "equity" | "bonus" | "perks";

interface RewardCard {
  icon: RewardIcon;
  title: string;
  description: string;
  featured?: boolean;
}

Behavior notes

  • Fully static: no client-side state.
  • The card whose `featured` flag is true is styled with an accent border and bg-primary/5 background and additionally shows a philosophy sentence; this is a purely visual distinction driven by demo data, not derived at runtime.