People bar portraits — Testimonials block
Freetestimonials-people-bar-portraits · for home, landing, product pages
People bar portraits
The merchant can show who joined or who vouches: their portraits beside the message, in a bar
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/testimonials-people-bar-portraitsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TestimonialsPeopleBarPortraits from '@/components/trame/blocks/testimonials/testimonials-people-bar-portraits.vue'
const props = {
message: "They’ve already received their invitation for the next batch.",
action: {
label: "Join the list",
action: "waitlist"
},
people: [
{
name: "Camille Roussel"
},
{
name: "Ivy Marchand"
}
],
tone: "brand"
}
</script>
<template>
<TestimonialsPeopleBarPortraits v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| message* | string | Wordsthe message, in one sentence, exactly as the merchant wrote it |
| detail | string | Wordswhat completes the message, if it needs it |
| action | Action | the call to action: its words and the page action it runs |
| people* | People[] | Datathe people the message speaks for, with their portrait when the shop has one; the merchant’s own only |
| dismissible | boolean | true: the visitor can close the bar |
| tone | 'neutral' | 'brand' | 'inverse' | 'alert' | the status colour |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Action action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the link does ("Learn more") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
People people[] · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| sticky | boolean | true: the bar stays in view while the page scrolls |
| 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:
action
A testimonials section, for home, landing, product pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More testimonials blocks
- Ledger: three to eight quotes read as a register, one row per customer with the author beside the words: a sober page where names matter.
- Logo tabs: three to five customers, each a tab made of their logo or name above one quote at a time: B2B proof by company.
- Marquee: six or more short quotes passing in a row, pausable: a long list of one-line praise on a lively page.
- Masonry: many short quotes without hierarchy in balanced columns, folded to the first few on a phone: a shop with a lot of reviews.
- Portraits: two to six customers led by a tall portrait with the quote below: a brand of people and craft, with real photos.
- Pull quote: a single sentence and two figures, centered and bare: a closing proof before an action.
- Rotator: a few longer quotes told one at a time with their authors’ photos stacked beside: quotes that need room, and a visitor who reads.
- Social proof bar inline: avatars, stars and the count on one line, next to a hero or an action: the quietest signal; the merchant’s own only.