Media proof photo grid — Press block

Pro

press-media-proof-photo-grid · for home, product pages

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.

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-media-proof-photo-grid

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PressMediaProofPhotoGrid from '@/components/trame/blocks/press/press-media-proof-photo-grid.vue'

const props = {
heading: "Your photos, your words",
lead: "Shared with their authors’ permission.",
items: [
{
image: "https://images.unsplash.com/photo-1617500603321-bcd6286973b7?w=1600&q=80",
alt: "A canvas tote holding a baguette, lettuce and a bottle",
text: "Three years of Saturday markets and it’s still going strong.",
author: "@marie.ateliers",
date: "March 14, 2025",
source: "Instagram",
url: "https://example.org/p/1"
},
{
image: "https://images.unsplash.com/photo-1602845860431-35374f24f48d?w=1600&q=80",
alt: "A mustard canvas backpack with leather straps, resting on the grass",
text: "The handiest bag for getting around.",
author: "@julien_en_ville",
date: "February 2, 2025",
source: "Instagram",
rating: 5
}
]
}
</script>

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

Props

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

PropTypeDescription
headingstringWordswhat these pictures are ("Your photos, your words")
leadstringWordsone sentence of context, with the permission note if useful
items*Item[]the items shown, in order
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 9 props
PropTypeDescription
imagestringPicturethe customer’s own photo or the video’s poster, shared with their permission
altstringWordswhat the picture shows
textstringWordsthe caption or the post, word for word
author*stringWordsthe handle or name of who posted it ("@marie.ateliers")
date*stringWordswhen it was posted, as written ("14 March 2025")
sourcestringWordswhere it was posted ("Instagram")
ratingnumberthe stars the customer gave, when it is a review
durationstringWordsvideo-row: the length of the video ("0:48")
urlstringDesignthe address of the original post (https://…)
Options options · 1 props
PropTypeDescription
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, product pages; it uses @lucide/vue, 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.
  • Mentions featured quote: one real sentence told large with its outlet, the other mentions as small lines under it: one strong mention, or a single one.
  • 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.
  • 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.

All 17 press blocks