Tour dates by month — Events block
Proevents-tour-dates-by-month · for home, landing, event pages
Tour dates by month
A long run of dates grouped under their month: a season or a year of shows
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-tour-dates-by-monthUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import EventsTourDatesByMonth from '@/components/trame/blocks/events/events-tour-dates-by-month.vue'
const props = {
title: "Upcoming dates",
lead: "A tour of small venues, from spring into summer. More dates are added as the months go by.",
dates: [
{
date: "2027-03-12",
time: "8:30 p.m.",
city: "Portland",
venue: "The Factory Hall",
status: "open",
action: "tickets",
record: {
id: "lyon"
}
},
{
date: "2027-03-19",
time: "8:00 p.m.",
city: "Salt Lake City",
venue: "The Vaults",
status: "fewLeft",
action: "tickets",
record: {
id: "grenoble"
}
}
],
options: {
eyebrow: "2027 Tour",
ticketLabel: "Tickets",
footer: "No date near you? Write to us."
}
}
</script>
<template>
<EventsTourDatesByMonth v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the list is ("Upcoming dates") |
| lead | string | Wordsone sentence, as the artist or company says it |
| dates* | Date[] | the tour dates, each with its venue and tickets |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Date dates[] · 8 props
| Prop | Type | Description |
|---|---|---|
| date* | string | Designthe day, as YYYY-MM-DD |
| time | string | Wordsthe time as written ("8:30 pm") |
| city* | string | Wordsthe city |
| venue | string | Wordsthe venue |
| status | 'open' | 'fewLeft' | 'soldOut' | 'free' | 'cancelled' | only what the organiser says: `fewLeft` and `soldOut` are never guessed |
| note | string | Wordsa line the organiser adds ("with orchestra", "from age 6") |
| action | string | Actionthe page action that leads to the tickets |
| record | Record<string, unknown> | Datathe record the action opens (the date), if any |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsthe kind of dates ("2027 tour") |
| ticketLabel | string | Wordsthe ticket link’s words ("Tickets") |
| footer | string | Wordsa line under the list ("A date missing? Write to us.") |
| 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 |
| 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:
dates[]
A events section, for home, landing, event pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
More events blocks
- 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.
- 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.
- 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.
- Webinar upcoming: one coming live session: its date and time, speakers, agenda and the registration form beside them — the merchant’s own only.