Release calendar dated list — Events block

Pro

events-release-calendar-dated-list · for landing, home pages

Release calendar dated list

Several dated releases to come: the form beside a calendar of them — 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-release-calendar-dated-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import EventsReleaseCalendarDatedList from '@/components/trame/blocks/events/events-release-calendar-dated-list.vue'

const props = {
title: "Upcoming releases",
lead: "Leave your email: we send one message on opening day, so you can order before the public launch.",
submitLabel: "Notify me",
consent: "Your email is used only for this reminder and is deleted after the launch.",
joinAction: "waitlist.join",
entries: [
{
date: "June 24",
title: "Drop 015",
text: "Waxed cotton jackets, in three colors."
},
{
date: "September 9",
title: "Drop 016",
text: "Vermont wool sweaters."
}
],
options: {
entriesTitle: "On the calendar"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the visitor is waiting for ("The next drop arrives in November")
leadstringWordsone or two sentences on what joining gives: first access, a reminder, nothing else
submitLabel*stringWordswhat the button does ("Notify me")
consentstringWordsthe purpose of the address and the right to leave, as the merchant states it, under the field
joinAction*stringActionthe page action that receives the address (posted by the form)
countstringWordshow many people already joined, only when the merchant states a real figure
entries*Entry[]the entries shown, in order
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Entry entries[] · 3 props
PropTypeDescription
datestringWordsthe date as the merchant wrote it ("24 June")
title*stringWordsthe release ("Drop 015")
textstringWordsone short line on it
Options options · 5 props
PropTypeDescription
eyebrowstringWordsa short line above the title ("Early access")
entriesTitlestringWordsthe heading above the entries ("To the calendar")
status'success' | 'error'Datathe answer to the last submission, when the host re-renders with it
statusTextstringWordswhat that answer says
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
  • Asks your app through actions: subscribe

A events section, for landing, home 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

  • Itinerary timeline: a thin vertical line of days with a small picture each: a long trip read quickly, many days.
  • 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.
  • 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.
  • 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.

All 23 events blocks