Pull quote — Testimonials block
Freetestimonials-pull-quote · for home, landing, product, about pages
Pull quote
A single sentence and two figures, centered and bare: a closing proof before an action
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-pull-quoteUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TestimonialsPullQuote from '@/components/trame/blocks/testimonials/testimonials-pull-quote.vue'
const props = {
title: "What our customers say",
intro: "Words we received by email or in the shop, published with their authors’ consent.",
items: [
{
text: "The pack did three weeks of hiking in the Sierra Nevada without a single seam giving way. I recommend it to anyone who travels light.",
author: {
name: "Camille Roux",
role: "Hiking guide",
avatar: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=600&q=80"
},
rating: 5
},
{
text: "Delivered in two days, carefully packed, with a handwritten note in the box. Nothing to fault.",
author: {
name: "Antoine Lever",
role: "Customer since 2022"
},
rating: 5
}
]
}
</script>
<template>
<TestimonialsPullQuote v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title | string | Wordsthe section’s heading, if it needs one ("What our customers say about it") |
| intro | string | Wordsone line under the heading |
| items* | Item[] | Datathe quotes the merchant collected, word for word and with the customer’s consent: never written by the agent |
| action | Action | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 6 props
| Prop | Type | Description |
|---|---|---|
| text* | string | Wordsthe testimonial, in the customer’s own words |
| author* | Author | who said it |
| rating | number | the stars they gave, 1 to 5 |
| source | string | Wordswhere it was collected, e.g. "Google reviews" |
| logo | string | Picturethe customer’s logo, if they gave one |
| figures | Figure[] | figures the customer gave, each with its unit |
Author items[].author · 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 |
Figure items[].figures[] · 2 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Wordsthe figure as the customer gave it, with its unit ("+38%", "12 h") |
| label* | string | Wordswhat it measures and over which period ("of online sales in 6 months") |
Action action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Read all reviews") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| note | string | Wordsa line under the quotes (how they were collected, a date), as the merchant wrote it |
| 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
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
action - Reads
testimonialsfrom your app
A testimonials section, for home, landing, product, about pages; it uses 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 testimonials blocks
- Activity stream stack: the words on one side, the merchant’s latest events on the other as a stack of cards, the newest in front and the next few stepping back behind it: a home or landing section that shows the shop is busy (the merchant’s own events only, never looped).
- Activity stream ticker list: the words above a framed panel like an app’s feed, the events as rows with their time at the end, the newest marked: for a SaaS or booking product whose activity reads best as a list (the merchant’s own events only, never looped).
- People bar portraits: the merchant can show who joined or who vouches: their portraits beside the message, in a bar.
- 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.
- Social proof bar stat trio: the rating set large with its stars and count, beside one or two other figures in a ruled band of cells: a section of its own between two others, when the merchant has a figure or two to stand by; the merchant’s own only.
- Video feature: one customer’s film large with their words beside it and the others as thumbnails to pick: a story worth watching, with a few more behind it.
- Video grid: two to six films as cards, each with its poster, quote and person: several customers of equal weight.
- Video rail: tall portrait films in a swipeable row with the quote over the picture: many short customer stories.