Career ladder — Careers block

Pro

careers-career-ladder · for careers pages

Career ladder

The progression tracks with their levels and what each carries, above the openings: a house where one can grow

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/careers-career-ladder

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import CareersCareerLadder from '@/components/trame/blocks/careers/careers-career-ladder.vue'

const props = {
title: "Growing at the workshop",
lead: "Two tracks, clear steps. Each level is earned through a review, not seniority.",
roles: [
{
id: 1,
title: "Leather craftsperson",
team: "Workshop",
place: "Portland",
type: "Full-time",
salary: "$30k–$36k gross / year"
},
{
id: 2,
title: "Quality lead",
team: "Workshop",
place: "Portland",
type: "Full-time"
}
],
roleAction: "job",
ladder: [
{
track: "Workshop",
levels: [
{
level: "Level 1",
title: "Apprentice leather craftsperson",
expectation: "You learn the basic techniques, with guidance at the bench."
},
{
level: "Level 2",
title: "Leather craftsperson",
expectation: "You build a whole piece, from pattern to finish."
}
]
},
{
track: "Shop",
levels: [
{
level: "Level 1",
title: "Sales associate",
expectation: "You welcome and advise customers, and know every piece."
},
{
level: "Level 2",
title: "Store manager",
expectation: "You run the team, the orders and the customer appointments."
}
]
}
],
cta: {
label: "Send an open application",
action: "contact"
}
}
</script>

<template>
<CareersCareerLadder v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordswhat the page says ("Come and work with us")
leadstringWordsone sentence on how the team works or hires
roles*Role[]Datathe real openings; empty when there are none
roleActionstringActionthe action that opens one opening
ladder*Ladder[]the progression tracks, for the ladder variant
ctaCtathe call to action: its words and the page action it runs
fallbackstringWordsthe line when nothing is open, with how to apply anyway ("No open position, but write to us at jobs@…")
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Role roles[] · 6 props
PropTypeDescription
idstring | numberthe role’s id
title*stringWordsthe job’s title
teamstringWordsits team ("Workshop", "Shop")
place*stringWordswhere it is ("Lyon", "Remote work")
typestringWordsthe contract ("Permanent contract", "Work-study")
salarystringWordsthe range, only if the merchant publishes it ("€32k to €38k gross / year")
Ladder ladder[] · 2 props
PropTypeDescription
track*stringWordsa progression track ("Workshop")
levels*Level[]the track’s levels, lowest first
Level ladder[].levels[] · 3 props
PropTypeDescription
level*stringWordsits place in the track ("Level 1")
title*stringWordsthe jobs of the level ("Apprentice, junior leatherworker")
expectation*stringWordswhat the level carries ("You assemble a piece from pattern to finish")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("See the jobs", "Open application")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 1 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: roleAction, cta
  • Reads jobs from your app

A careers section, for careers pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More careers blocks

  • Company benefits photo stack: pictures stacked in a column beside numbered benefit rows, the employee’s words as a pull quote at the foot: a workshop or a team with several good pictures; the merchant’s own quote and ratings only.
  • Company benefits picture beside: one picture beside the title, an employee’s words and the ratings, the benefits as ruled columns below: a careers page that opens on the people; the merchant’s own quote and ratings only.
  • Company benefits ratings first: the public ratings set large on top, the title and the quote beside the benefits, one wide picture closing: when the ratings are good and well sourced; the merchant’s own quote and ratings only.
  • Hiring invitation band: one bar with the people who recruit, the number of openings and a button: a short invitation on a page of another subject.
  • Hiring process steps: the hiring steps in numbered columns with their durations and one figure: when how you hire matters most.
  • Open roles by team: openings grouped by team, each row with its place, contract and range: five openings or more.
  • Open roles cards: one card per opening with its contract and place as chips: two to six openings that should look like an invitation, not a list.
  • Open roles featured first: the first opening as a wide featured card, the others as compact cards in two columns: one opening matters more than the rest this quarter (put it first).

All 15 careers blocks