People bar portraits — Testimonials block

Free

testimonials-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-portraits

Usage

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.

PropTypeDescription
message*stringWordsthe message, in one sentence, exactly as the merchant wrote it
detailstringWordswhat completes the message, if it needs it
actionActionthe 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
dismissiblebooleantrue: the visitor can close the bar
tone'neutral' | 'brand' | 'inverse' | 'alert'the status colour
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Action action · 3 props
PropTypeDescription
label*stringWordswhat the link does ("Learn more")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
People people[] · 6 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
Options options · 2 props
PropTypeDescription
stickybooleantrue: the bar stays in view while the page scrolls
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: 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.

All 21 testimonials blocks