Leadership rows — Team block

Free

team-leadership-rows · for about, team pages

Leadership rows

Avatar, name, role and a few sentences per hairline row: three to six people to introduce properly; 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/team-leadership-rows

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import TeamLeadershipRows from '@/components/trame/blocks/team/team-leadership-rows.vue'

const props = {
title: "The people behind the workshop",
lead: "A small team under one roof: the people who design, sew and ship your orders.",
people: [
{
id: 1,
name: "Camille Laurent",
role: "Founder, leatherworker",
group: "Workshop",
location: "Portland",
bio: "Designs the models and cuts the first prototypes. She opened the workshop with one workbench and a sewing machine.",
avatar: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=1600&q=80"
},
{
id: 2,
name: "Mathieu Roche",
role: "Production manager",
group: "Workshop",
location: "Portland",
bio: "Follows every batch from cutting to final inspection and decides when a piece is ready to ship.",
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1600&q=80"
}
],
cta: {
label: "See open positions",
action: "careers"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the page says about the people ("The people behind the workshop")
leadstringWordsone sentence on how the team works
people*People[]Datathe real people of the team, with their consent
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
People people[] · 9 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
biostringWordsone or two sentences, written or approved by the person
groupstringWordstheir team or department ("Workshop", "Shop")
locationstringWordswhere they work ("Lyon")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("See the open positions")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
showBiobooleanwhether each person’s bio is shown
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
asseta picture’s address as your app serves it
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
  • Reads people from your app

A team section, for about, team pages; it uses @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

Built with

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

More team blocks

  • Directory grouped: a department label and small chips of avatar, name and role: a team organised in groups; the merchant’s own only.
  • Directory list: a text-only list of names and roles, grouped when teams are given: ten people or more; the merchant’s own only.
  • Directory location cards: the places with their head count, then compact cards (avatar, name, role, a pinned line with where the person works) in sections by team: a team spread over several cities, where the place each person works from matters; the merchant’s own only.
  • Directory mosaic: tight square portraits edge to edge with the name on the picture, no gaps between faces: four to twelve people with pictures, a house that shows its crowd; the merchant’s own only.
  • Practitioner list cards: portrait cards in a grid with speciality chips and a booking button: three to twelve practitioners a visitor compares at a glance.
  • Practitioner list directory: a compact list grouped by profession, small portrait, one line of detail and a booking link per row: a large practice with several professions.
  • Practitioner list spotlight: one large portrait per practitioner in alternating rows with the details beside it: one to four people the practice wants to introduce properly.
  • Profile card centered: a contact or a seller in a side column: the portrait centred on top, the words under it and two equal buttons at the foot; the merchant’s own people only.

All 23 team blocks