Profile card centered — Team block

Pro

team-profile-card-centered · for about, product, app, landing pages

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

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-profile-card-centered

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import TeamProfileCardCentered from '@/components/trame/blocks/team/team-profile-card-centered.vue'

const props = {
name: "Elise Garnier",
avatar: "https://images.unsplash.com/photo-1580489944761-15a19d654956?w=800&q=80",
alt: "Portrait of a smiling woman with brown hair in a bun, wearing a white T-shirt",
cover: "https://images.unsplash.com/photo-1676125105332-608345abe20e?w=1400&q=80",
headline: "Ceramicist, founder of the studio",
verified: true,
bio: "I throw every bowl and cup in the shop in my Pearl District studio, and glaze everything on site.",
facts: [
{
label: "Location",
value: "Portland, Pearl District"
},
{
label: "Since",
value: "Studio opened in 2014"
}
],
counters: [
{
label: "pieces in the shop",
value: "48"
},
{
label: "classes a month",
value: "6"
}
],
tags: [
"Stoneware",
"Throwing"
],
links: [
{
label: "Studio journal",
action: "journal"
},
{
label: "Instagram",
url: "https://example.com/atelier-garnier"
}
],
actions: [
{
label: "Book a class",
action: "booking"
},
{
label: "Write",
action: "contact"
}
]
}
</script>

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

Props

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

PropTypeDescription
name*stringWordsthe person’s name
avatarstringPicturetheir portrait
altstringWordswhat the portrait shows
coverstringPicturea cover picture: the place, the work
headlinestringWordsrole and place ("Ceramicist in Lyon")
verifiedbooleanonly when the host or the platform says so
biostringWordsa few lines about the person
factsFact[]location, since when, rate: the merchant’s own words
countersCounter[]2 to 4 figures the merchant or the platform gives, never made up
tagsstring[]Wordsa skill or a speciality
linksLink[]their profiles and site
actionsAction[]one or two ways to reach them ("Write", "Book"), the first is the main one
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Fact facts[] · 2 props
PropTypeDescription
label*stringWordswhat the value is about
value*stringWordsthe value, as the merchant states it
Counter counters[] · 2 props
PropTypeDescription
label*stringWordswhat the value is about
value*stringWordsthe value, as the merchant states it
Link links[] · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Action actions[] · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
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
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: links[], actions[]

A team section, for about, product, app, landing pages; it uses @lucide/vue, 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

  • Leadership rows: avatar, name, role and a few sentences per hairline row: three to six people to introduce properly; the merchant’s own only.
  • Portrait carousel: portrait cards (picture, name, role, a short bio) in one row that steps by arrows, the next card peeking, a counter beside the title: six to twelve people in a section that must stay short; the merchant’s own only.
  • Portrait grid: portraits in a grid sized to the count, name and role under each: three to twelve people with pictures; 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.
  • Side mosaic: the title, the lead and the link in the left third, a tight mosaic of portraits on the right with name and role on each picture’s foot: four to six people on a team page where the words lead and the faces support; the merchant’s own only.
  • Speakers keynote plus: the keynote speakers large, the others in a compact grid: a line-up with a clear hierarchy.

All 23 team blocks