Booking agenda by day — Calendar block
Procalendar-booking-agenda-by-day · for app, calendar, bookings pages
Booking agenda by day
A plain list grouped by day: the compact view and the one that reads best on a phone
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/calendar-booking-agenda-by-dayUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import CalendarBookingAgendaByDay from '@/components/trame/blocks/calendar/calendar-booking-agenda-by-day.vue'
const props = {
title: "Salon appointments",
range: {
label: "October 2026",
start: "2026-10-15",
today: "2026-10-15",
previous: "previous",
next: "next",
current: "today"
},
events: [
{
id: 1,
start: "2026-10-05T09:00",
end: "2026-10-05T10:00",
title: "Cut and blow-dry · Ms. Roux",
resourceId: "lea",
status: "Confirmed",
tone: "success"
},
{
id: 2,
start: "2026-10-07T14:00",
end: "2026-10-07T15:30",
title: "Color · Mr. Faure",
resourceId: "lea",
status: "To be confirmed",
tone: "warning"
}
],
resources: [
{
id: "lea",
name: "Leah",
role: "Hair"
},
{
id: "samir",
name: "Samir",
role: "Barber"
}
],
create: "create",
open: "event"
}
</script>
<template>
<CalendarBookingAgendaByDay v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe calendar’s heading ("Workshop events") |
| range* | Range | the period shown and its words |
| events* | Event[] | Datathe bookings of the period, as the merchant holds them |
| resources | Resource[] | Datathe people or rooms, one column each in resources-day |
| create | string | Actioncreates an event |
| open | string | Actionthe page of an event |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Range range · 6 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe period in words, in the app’s language ("October 2026") |
| start* | string | Designthe first day shown, YYYY-MM-DD; its month is the month shown, its day the day shown |
| today | string | Designtoday as the host knows it, YYYY-MM-DD, to mark it; absent: nothing is marked |
| previous | string | Actionthe previous period |
| next | string | Actionthe next period |
| current | string | Actionback to today |
Event events[] · 7 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the event’s id |
| start* | string | DesignYYYY-MM-DD or YYYY-MM-DDTHH:mm, in the calendar’s own time |
| end | string | DesignYYYY-MM-DDTHH:mm; one hour after the start when absent |
| title* | string | Wordsthe event’s title |
| resourceId | string | number | the person or room it belongs to |
| status | string | Wordsthe state in words ("Confirmed", "To be confirmed"): a state is never colour alone |
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | the status colour |
Resource resources[] · 3 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the event’s id |
| name* | string | Wordsthe resource’s name |
| role | string | Wordsthe resource’s role, e.g. "Stylist" |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| createLabel | string | Wordswhat the create button says ("New appointment") |
| empty | string | Wordswhat a period with nothing in it says |
| 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
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
range.previous,range.next,range.current,create,open - Reads
events,resourcesfrom your app
A calendar section, for app, calendar, bookings pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More calendar blocks
- Day: one day on an hour axis with its events wide, and the day’s list beside it on wide screens, for a full day of appointments.
- Month: a month at a glance with its busy days, the month’s agenda beside or under it.
- Sidebar month and layers: the side pane beside a calendar view: a mini month to pick the day, then the calendars in folding groups with a checkbox each.
- Sidebar week strip: a narrow panel or a phone: the selected week as seven raised day tiles, the calendars as toggle chips under it.
- Slot picker slots: an appointment page: the free slots of a day to pick from, not a full calendar.
- Team schedule columns: one day of a team or rooms: a column per person on a time axis, to see who is free when.
- Timeline gantt: Task rows on a shared supplied time axis, using the merchant's own dates and progress only.
- Timeline journal: A vertical dated journal for the merchant’s own milestones and delivery notes, without a time-axis grid.