Perks plain icons — Careers block

Pro

careers-perks-plain-icons · for careers, about pages

Perks plain icons

Open icon rows with a closing action, for the merchant's own benefits only.

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-perks-plain-icons

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import CareersPerksPlainIcons from '@/components/trame/blocks/careers/careers-perks-plain-icons.vue'

const props = {
title: "Care in the way we work",
items: [
{
title: "Learning together",
text: "Set-aside time to share techniques and discover neighboring crafts.",
icon: "book"
},
{
title: "A pace we agree on",
text: "Schedules are built with the team, around the workshop’s needs.",
icon: "leaf"
}
],
cta: {
label: "Let’s talk about your craft",
action: "careers"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s heading
items*Item[]the items shown, in order
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 5 props
PropTypeDescription
title*stringWordsthe item’s title
text*stringWordsthe item’s text
icon'leaf' | 'book' | 'heart'the icon shown with it, from the block’s set
figurenumbera figure that goes with the perk, e.g. a number of days
unitstringWordsthe unit written after the figure
Cta cta · 3 props
PropTypeDescription
label*stringWordsthe words on the button or link
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, 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: cta

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

More careers blocks

  • 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).
  • Open roles grouped tiles: each team as a heading, its openings as small tiles in up to three columns: four or more teams with two or three openings each.
  • Open roles team filter: team chips above a single list that filters the openings, all shown first: eight openings or more across several teams.
  • Ownership shares stacked: one stacked bar and a legend with percentages that add up to 100: who owns the company, how a sale is shared; the merchant’s own only.
  • Salary bands table: the lead and the words left, a table of roles with their level and band right: when the merchant publishes its pay.

All 15 careers blocks