Upcoming list — Events block

Pro

events-upcoming-list · for events, landing pages

Upcoming list

A date chip, the title, details and a reserve action per row: a handful of dated events to book; 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-upcoming-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import EventsUpcomingList from '@/components/trame/blocks/events/events-upcoming-list.vue'

const props = {
title: "What’s on at the workshop",
lead: "Workshops, tours and talks, open to everyone.",
events: [
{
id: 1,
date: "2026-03-14",
title: "Repair workshop: restitching a handle",
day: "14",
month: "Mar",
group: "Saturday, March 14",
time: "10 a.m. to noon",
kind: "Workshop",
speaker: {
name: "Camille Marchand",
role: "Founder"
},
place: "Workshop, Portland",
text: "Bring a worn bag, and leave knowing how to fix it.",
seats: "12 seats"
},
{
id: 2,
date: "2026-03-14",
title: "Tannery tour",
day: "14",
month: "Mar",
group: "Saturday, March 14",
time: "2:30 to 4 p.m.",
kind: "Tour",
place: "Bozeman"
}
],
rsvp: {
label: "Book",
action: "event"
},
options: {
timezone: "Pacific Time"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the page announces ("Workshop events")
leadstringWordsone sentence on what to expect
events*Event[]Datathe real events and sessions; empty when none is planned
rsvpRsvpthe rsvp action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Event events[] · 12 props
PropTypeDescription
idstring | numberthe event’s id
title*stringWordswhat it is ("Repair workshop")
datestringDesignthe date as YYYY-MM-DD, to draw the month grid; leave it out when the day and month words are enough
daystringWordsthe day of the month, as written ("14")
monthstringWordsthe month, short ("March")
groupstringWordsthe day or track it belongs to ("Saturday 14 March", "Workshop track"), to group sessions
timestringWordsthe hours as written, with the time zone if it matters ("10:00 to 12:00")
kindstringWordsa short kind ("Workshop", "Talk")
speakerSpeakerDatawho hosts it
placestringWordswhere it takes place, or "Online"
textstringWordsone or two sentences of detail
seatsstringWordsseats, only if the merchant states them ("20 places")
Speaker events[].speaker · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Rsvp rsvp · 3 props
PropTypeDescription
label*stringWordswhat happens ("Book")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
timezonestringWordsthe time zone of the hours ("Paris time")
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
Linkyour router’s link component
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
  • Asks your app through actions: rsvp
  • Reads events from your app

A events section, for events, landing pages; it uses @lucide/vue, @vueuse/core, 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

  • 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.
  • Session program rail: a single vertical rail of hours with notes: the schedule of one day; the merchant’s own only.
  • Session programme dated list: a recurring programme: a dated list of sessions, each open, full or in replay, with one form to follow the series — the merchant’s own only.
  • Session recording split player: a session that already happened: the recording to play, the chapters and speakers, a form to receive the material — the merchant’s own only.
  • Tour dates by month: a long run of dates grouped under their month: a season or a year of shows.
  • Tour dates list: a clear agenda of a few dates: day, city and venue, status, tickets: when the dates are the information.
  • Tour dates poster: the dates as big type, like a tour poster: a short run of dates that must be felt, not only read.
  • Webinar upcoming: one coming live session: its date and time, speakers, agenda and the registration form beside them — the merchant’s own only.

All 23 events blocks