Mentions grouped — Press block
Propress-mentions-grouped · for home, about, landing pages
Mentions grouped
The mentions gathered under their outlet, each outlet at the left with its dated pieces at the right: several pieces from the same outlets
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-groupedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PressMentionsGrouped from '@/components/trame/blocks/press/press-mentions-grouped.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>
<PressMentionsGrouped v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| heading | string | Wordswhat these mentions are ("They wrote about us") |
| lead | string | Wordsone sentence of context |
| items | Item[] | the items shown, in order |
| disclosure | string | Wordswhen products were lent, given or paid for, say so ("Products lent by the brand for the test"): test-results needs it |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 8 props
| Prop | Type | Description |
|---|---|---|
| outlet* | string | Wordsthe name of the publication, the reviewer or the lab, as it writes itself |
| title | string | Wordsthe headline of the piece, exactly as published |
| quote | string | Wordsa sentence of the piece, word for word, never paraphrased |
| result | string | Wordstest-results: what the lab measured or concluded, as its report states it |
| logo | string | Picturethe outlet’s mark, a file the merchant has the right to show |
| author | string | Wordswho signed the piece |
| date | string | Wordswhen it was published, as the merchant writes it ("March 2025") |
| url | string | Designthe 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
| Prop | Type | Description |
|---|---|---|
| mono | boolean | paint the outlet marks with the text colour instead of showing them as they are |
| 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 |
| 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
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.