Practitioner list cards — Team block

Pro

team-practitioner-list-cards · for home, landing pages

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

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-practitioner-list-cards

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import TeamPractitionerListCards from '@/components/trame/blocks/team/team-practitioner-list-cards.vue'

const props = {
title: "Our practitioners",
lead: "Everyone sees patients by appointment. Choose the person who fits your needs, then book directly online.",
practitioners: [
{
id: "dr-1",
name: "Dr. Claire Vasseur",
profession: "Family physician",
specialities: [
"Prenatal care",
"General pediatrics"
],
languages: [
"English",
"French"
],
fee: "In network with most insurance plans",
avatar: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=1600&q=80",
alt: "Smiling portrait of the practitioner in a light-colored coat"
},
{
id: "dr-2",
name: "Dr. Mathieu Delorme",
profession: "Family physician",
specialities: [
"Chronic conditions",
"Sports physicals"
],
languages: [
"English",
"Spanish"
],
fee: "In network with most insurance plans",
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1600&q=80"
}
],
booking: {
label: "Book an appointment",
action: "book"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the page says ("Our practitioners")
leadstringWordsone sentence on how to choose or book
practitioners*Practitioner[]Datathe real practitioners, with their consent; the merchant’s own only
bookingBookingthe booking action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Practitioner practitioners[] · 8 props
PropTypeDescription
name*stringWordsthe person’s name
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
id*string | numberDatathe practitioner’s id in the booking tool
profession*stringWordstheir profession ("Physiotherapist")
specialitiesstring[]Wordswhat they focus on, as they wrote it
languagesstring[]Wordsthe languages they receive in
feestringWordsthe merchant’s own note on fees ("Sector 1 contracted"): never an estimate
altstringWordswhat the portrait shows, if more than the name
Booking booking · 2 props
PropTypeDescription
label*stringWordswhat the button says ("Book an appointment")
action*stringActionthe booking page, opened with the practitioner
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: booking
  • Reads practitioners from your app

A team section, for home, 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

  • Founders cards: one to three large cards with a big portrait and a bio: the founders or owners; the merchant’s own only.
  • Lead and crew: the first person large with their bio, everyone else as a compact list beside: a studio led by one person with a small crew; the merchant’s own only.
  • 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.
  • 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.
  • Profile card cover banner: a creator or a community member: a cover strip, the portrait over its edge with the actions beside it, then bio, links, a ruled row of figures and the tags.
  • Profile card portrait: a person whose face is the argument (a coach, an artist): the picture fills the top of the card, name, figures and the main action on a solid foot.

All 23 team blocks