Practitioner list directory — Team block
Proteam-practitioner-list-directory · for home, landing pages
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
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-directoryUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TeamPractitionerListDirectory from '@/components/trame/blocks/team/team-practitioner-list-directory.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>
<TeamPractitionerListDirectory v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the page says ("Our practitioners") |
| lead | string | Wordsone sentence on how to choose or book |
| practitioners* | Practitioner[] | Datathe real practitioners, with their consent; the merchant’s own only |
| booking | Booking | the booking action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Practitioner practitioners[] · 8 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe person’s name |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| id* | string | number | Datathe practitioner’s id in the booking tool |
| profession* | string | Wordstheir profession ("Physiotherapist") |
| specialities | string[] | Wordswhat they focus on, as they wrote it |
| languages | string[] | Wordsthe languages they receive in |
| fee | string | Wordsthe merchant’s own note on fees ("Sector 1 contracted"): never an estimate |
| alt | string | Wordswhat the portrait shows, if more than the name |
Booking booking · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the button says ("Book an appointment") |
| action* | string | Actionthe booking page, opened with the practitioner |
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 |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| 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
- Asks your app through actions:
booking - Reads
practitionersfrom your app
A team section, for home, landing pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More team blocks
- 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.
- Profile card row: a person inside a list or beside an article: a horizontal card, the portrait left, name, headline and a two-line bio, the links and the actions at the right.