Retrospective gallery — Events block
Proevents-retrospective-gallery · for events, landing pages
Retrospective gallery
The pictures and figures of the past edition, then the next date: what happened, and what comes next; 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/events-retrospective-galleryUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import EventsRetrospectiveGallery from '@/components/trame/blocks/events/events-retrospective-gallery.vue'
const props = {
title: "Last year’s workshop party",
lead: "One open day, eighteen months of work on show, and already a date for the next one.",
events: [
{
id: 4,
date: "2026-03-28",
title: "Open house",
day: "28",
month: "Mar",
group: "Saturday, March 28",
time: "10 a.m. to 6 p.m.",
kind: "Open house",
place: "Workshop, Portland"
}
],
recapPhotos: [
{
src: "https://images.unsplash.com/photo-1787005241178-c9006ea9610b?w=1600&q=80",
caption: "Pattern tracing, set up in the courtyard",
alt: "Hands tracing a pattern in pencil on leather"
},
{
src: "https://images.unsplash.com/photo-1716295177956-420a647c83ac?w=1600&q=80",
caption: "The saddle stitch, explained to every passerby",
alt: "Close-up of light brown leather with a seam"
}
],
figures: [
{
value: "240 visitors",
label: "over the day"
},
{
value: "3 workshops",
label: "fully booked by morning"
}
],
rsvp: {
label: "Book",
action: "event"
},
options: {
timezone: "Pacific Time"
}
}
</script>
<template>
<EventsRetrospectiveGallery v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the page announces ("Workshop events") |
| lead | string | Wordsone sentence on what to expect |
| events* | Event[] | Datathe real events and sessions; empty when none is planned |
| recapPhotos* | RecapPhoto[] | pictures of the past edition, for the recap variant |
| figures | Figure[] | the merchant’s own figures of the past edition, for the recap variant |
| rsvp | Rsvp | the rsvp action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Event events[] · 12 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | the event’s id |
| title* | string | Wordswhat it is ("Repair workshop") |
| date | string | Designthe date as YYYY-MM-DD, to draw the month grid; leave it out when the day and month words are enough |
| day | string | Wordsthe day of the month, as written ("14") |
| month | string | Wordsthe month, short ("March") |
| group | string | Wordsthe day or track it belongs to ("Saturday 14 March", "Workshop track"), to group sessions |
| time | string | Wordsthe hours as written, with the time zone if it matters ("10:00 to 12:00") |
| kind | string | Wordsa short kind ("Workshop", "Talk") |
| speaker | Speaker | Datawho hosts it |
| place | string | Wordswhere it takes place, or "Online" |
| text | string | Wordsone or two sentences of detail |
| seats | string | Wordsseats, only if the merchant states them ("20 places") |
Speaker events[].speaker · 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 |
RecapPhoto recapPhotos[] · 3 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturea picture of the past edition |
| caption* | string | Wordswhat it shows ("The dyeing table, set up in the courtyard") |
| alt | string | Wordswhat the picture shows, when the caption does not say it |
Figure figures[] · 2 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Wordsthe figure as the merchant wrote it ("240 visitors") |
| label* | string | Wordswhat it counts ("over the day") |
Rsvp rsvp · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Book") |
| 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 |
|---|---|---|
| timezone | string | Wordsthe time zone of the hours ("Paris time") |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
rsvp - Reads
eventsfrom your app
A events section, for events, landing pages; it uses @lucide/vue, 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 events blocks
- Launch dates timeline: a horizontal timeline of four steps with their state: the dates of a launch or a registration period; the merchant’s own only.
- Ledger dates: a plain, poster-like list: oversized day numerals at the left of hairline rows, nothing else to look at; the merchant’s own only.
- Registration sidebar: one event page: its agenda and hosts on the left, a sticky card on the right with the date, the place, the register and calendar actions; the merchant’s own only.
- Release calendar dated list: several dated releases to come: the form beside a calendar of them — the merchant’s own only.
- Season calendar chart: a table of twelve months with one bar per product, grouped by family: the whole year at a glance for a market stall or a box scheme with ten to forty products.
- Season calendar months: twelve month cards, each listing what is in season: a printable, readable-in-order calendar for a short list of products.
- Season calendar this month: twelve month buttons and, under them, what arrives, what is at its best and what ends in the chosen month: a shop that wants to say what to buy now.
- Session program columns: one to three columns of timed sessions, one per day or track: a programme with parallel sessions; the merchant’s own only.