Mentions list — Press block

Pro

press-mentions-list · for home, about, landing pages

Mentions list

A row per mention, the outlet at the left, the words in the middle, the date and the link at the right: a few to a dozen mentions

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/press-mentions-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PressMentionsList from '@/components/trame/blocks/press/press-mentions-list.vue'

const props = {
heading: "They wrote about us",
lead: "The articles and shows that have mentioned us, with their date and link.",
items: [
{
outlet: "Independent Textile Lab",
title: "Fabric test of the Lande jacket",
quote: "Every piece arrives with a tag that tells who made it and where.",
author: "Camille Roussel",
date: "March 2025",
url: "https://example.org/courrier-du-nord/atelier-roubaix",
result: "Abrasion resistance: 45,000 cycles without a tear"
},
{
outlet: "Material Review",
title: "Long-term test of the tote bag",
quote: "A finish that’s rare at this price, with stitching you’d expect at twice the cost.",
date: "January 2025",
url: "https://example.org/revue-matiere/dix-marques",
result: "After 90 days of daily use: seams intact"
}
],
disclosure: "The products tested by Material Review were lent by the shop."
}
</script>

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

Props

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

PropTypeDescription
headingstringWordswhat these mentions are ("They wrote about us")
leadstringWordsone sentence of context
itemsItem[]the items shown, in order
disclosurestringWordswhen products were lent, given or paid for, say so ("Products lent by the brand for the test"): test-results needs it
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 8 props
PropTypeDescription
outlet*stringWordsthe name of the publication, the reviewer or the lab, as it writes itself
titlestringWordsthe headline of the piece, exactly as published
quotestringWordsa sentence of the piece, word for word, never paraphrased
resultstringWordstest-results: what the lab measured or concluded, as its report states it
logostringPicturethe outlet’s mark, a file the merchant has the right to show
authorstringWordswho signed the piece
datestringWordswhen it was published, as the merchant writes it ("March 2025")
urlstringDesignthe address of the piece on the outlet’s own site (https://…): a mention with no link is still allowed, never an invented one
Options options · 2 props
PropTypeDescription
monobooleanpaint the outlet marks with the text colour instead of showing them as they are
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
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

A press section, for home, about, landing pages; it uses @lucide/vue, @vueuse/core, clsx, motion, tailwind-merge.

More press blocks

  • Awards ledger: a ruled table of index, title, issuer and year, the citation opening under its row: five to twelve distinctions listed like a résumé, with or without badges (the merchant’s own only).
  • Awards spotlight: one award told large, its badge at the left, its citation and facts at the right: a single strong distinction.
  • Awards timeline: the years in a column and the awards as lines per year: a history of recognition, up to a dozen.
  • Kit columns: a fact sheet: key facts in a column, the presentation beside them, the files and the contact below on a tint: a young brand with few files; the merchant’s own only.
  • Kit dossier: the brand’s text on one side and its files as a list of rows with format and size on the other: the usual press page; the merchant’s own only.
  • Media proof photo grid: square customer photos with a short caption and the author under each: a wall of real use; the merchant’s own only.
  • Media proof post wall: cards with the handle, the source, the date and the words of social posts: when the words matter as much as the picture; the merchant’s own only.
  • Media proof video row: poster cards linking out to customers’ videos, with their length and creator: nothing plays on the page; the merchant’s own only.

All 17 press blocks