Ownership shares stacked — Careers block
Procareers-ownership-shares-stacked · for about, product, sustainability pages
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.
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-ownership-shares-stackedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import CareersOwnershipSharesStacked from '@/components/trame/blocks/careers/careers-ownership-shares-stacked.vue'
const props = {
title: "Who owns the workshop",
rows: [
{
label: "Camille Marchand, founder",
share: 52
},
{
label: "Employees (employee stock plan)",
share: 28,
note: "Nine people, in equal shares"
}
],
source: "Workshop accounts, fiscal year 2025, reviewed by our CPA",
asOf: "As of December 31, 2025",
footnote: "Updated once a year, in January."
}
</script>
<template>
<CareersOwnershipSharesStacked v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe claim these books prove ("Where each euro of a bag goes") |
| lead | string | Wordswhat the figures cover and why the merchant publishes them |
| rows* | Row[] | Datathe merchant’s own lines: three at least |
| source* | string | Wordswhere the figures come from ("Workshop accounts, 2025 financial year, certified by our accountant") |
| asOf* | string | Wordsthe date of the figures, as the merchant wrote it ("At 31 December 2025") |
| footnote | string | Wordshow often it is updated, or a limit of the figures |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Row rows[] · 6 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the line counts ("Materials", "Workshop", "Shop margin") |
| amount | number | an amount in cents |
| share | number | its share of the whole, in percent |
| value | string | Wordsa figure that is not money, as the merchant writes it ("214 repairs", "3 rooms") |
| before | string | Wordsthe same measure at the first date, for then-now ("41%") |
| note | string | Wordsone short line of explanation |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
A careers section, for about, product, sustainability pages; it uses clsx, motion, tailwind-merge.
More careers blocks
- 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.
- Perks cards figures: Boxed benefits with the merchant's own figures only, for a concrete careers overview.
- Perks plain icons: Open icon rows with a closing action, for the merchant's own benefits 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.