Media proof video row — Press block
Propress-media-proof-video-row · for home, product pages
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.
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-video-rowUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PressMediaProofVideoRow from '@/components/trame/blocks/press/press-media-proof-video-row.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>
<PressMediaProofVideoRow v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| heading | string | Wordswhat these pictures are ("Your photos, your words") |
| lead | string | Wordsone sentence of context, with the permission note if useful |
| items* | Item[] | the items shown, in order |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 9 props
| Prop | Type | Description |
|---|---|---|
| image | string | Picturethe customer’s own photo or the video’s poster, shared with their permission |
| alt | string | Wordswhat the picture shows |
| text | string | Wordsthe caption or the post, word for word |
| author* | string | Wordsthe handle or name of who posted it ("@marie.ateliers") |
| date* | string | Wordswhen it was posted, as written ("14 March 2025") |
| source | string | Wordswhere it was posted ("Instagram") |
| rating | number | the stars the customer gave, when it is a review |
| duration | string | Wordsvideo-row: the length of the video ("0:48") |
| url | string | Designthe address of the original post (https://…) |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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, product pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
More press blocks
- 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.
- Mentions logos with quotes: a row of outlet marks, each one opening its quote below: several outlets with a sentence each.
- Mentions test results: independent tests as rows (who tested, the result, the date, the report) under a disclosure sentence: reviewers and labs.