CortexcnCortexcn
Pro

Work Experience

Display work experiences with role details, company logos, and durations.

Acme Inc.

Leads the web app's front end, from the design system to the release.

  • Design system: Built the shared component library the product and marketing sites use.
  • Analytics dashboard: Shipped live charts, filters, and exports for the customer dashboard.
  • Performance: Cut the app's first load by splitting routes and streaming data.
  • TypeScript
  • React
  • Next.js
  • Tailwind CSS
  • shadcn/ui
  • Motion
  • React
  • TypeScript
  • Playwright

Education

  • Algorithms
  • Databases
  • Human-Computer Interaction

Features

  • Supports multiple positions per company.
  • Markdown in position descriptions: paragraphs, lists, bold, code, and links.
  • Company logos, employment type, period, and a calculated duration.
  • Positions with a description expand and collapse; positions without one stay static.
  • No markdown, date, or icon libraries required.

Installation

ProPart of Cortexcn Pro

The source for work-experience comes with a Cortexcn Pro license, along with every other chart and the website templates. Pick a license on the pricing page.

Already have a license? Open the code

The CLI also installs the shadcn/ui Collapsible and Separator components.

Usage

import { WorkExperience } from "@/components/work-experience";
import type { ExperienceItemType } from "@/components/work-experience";
const experiences: ExperienceItemType[] = [
  {
    id: "acme",
    companyName: "Acme",
    companyWebsite: "https://acme.com",
    isCurrentEmployer: true,
    positions: [
      {
        id: "engineer",
        title: "Software Engineer",
        employmentPeriod: { start: "03.2024" },
        employmentType: "Full-time",
        description:
          "- Shipped the new billing flow.\n- Led the design system.",
        skills: ["React", "TypeScript"],
      },
    ],
  },
];

<WorkExperience experiences={experiences} />;

Dates use MM.YYYY or YYYY. Leave end out for a current role; the period then ends with an infinity sign and the duration counts up to today. icon accepts any element, so you can use whichever icon set your project already has.

API reference

WorkExperience

PropTypeDefaultDescription
experiencesExperienceItemType[]requiredCompanies to list, in order
classNamestring-Extra classes for the root div

ExperienceItemType

PropertyTypeDescription
idstringUnique identifier for the experience item
companyNamestringName of the company
companyLogostring?URL or path to the company's logo image
companyWebsitestring?URL to the company's website
positionsExperiencePositionItemType[]Positions held at the company
isCurrentEmployerboolean?Shows a live indicator next to the company

ExperiencePositionItemType

PropertyTypeDescription
idstringUnique identifier for the position
titlestringThe job title or position name
employmentPeriod{ start: string; end?: string }MM.YYYY or YYYY. Omit end for current roles
employmentTypestring?For example "Full-time", "Part-time", or "Contract"
descriptionstring?Markdown description; the position collapses when it is set
iconReactElement?Icon for the position. Defaults to a briefcase
skillsstring[]?Skills shown as tags under the position
isExpandedboolean?Whether the description starts expanded