Launch dates timeline — Events block

Pro

events-launch-dates-timeline · for events, landing pages

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.

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-launch-dates-timeline

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import EventsLaunchDatesTimeline from '@/components/trame/blocks/events/events-launch-dates-timeline.vue'

const props = {
title: "The workshop sale, step by step",
lead: "Workshops, tours and talks, open to everyone.",
dates: [
{
label: "Registration opens",
date: "February 2",
state: "done"
},
{
label: "Time slot drawing",
date: "February 20",
state: "current"
}
]
}
</script>

<template>
<EventsLaunchDatesTimeline 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
dates*Date[]the key dates, for the key-dates variant
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Date dates[] · 3 props
PropTypeDescription
label*stringWordsthe step ("Registration opens")
date*stringWordsits date, as written
state*'done' | 'current' | 'upcoming'where the step stands, as the merchant sets it
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
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 events section, for events, landing pages; it uses @lucide/vue, clsx, motion, tailwind-merge.

More events blocks

  • Invitation split: the hosts and the words left, a card with the date, the hours and a one-field form right: one event to fill; the merchant’s own only.
  • Itinerary days: one panel per day with its picture, its facts and its night: a trip sold on its landscapes, a few days long.
  • Itinerary map steps: every stop numbered along the whole route, with the legs between them and a sketch of the path: a trip sold on its route (no map library).
  • Itinerary timeline: a thin vertical line of days with a small picture each: a long trip read quickly, many days.
  • 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.
  • 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.

All 23 events blocks