Day briefing beside — Dashboard block

Pro

dashboard-day-briefing-beside · for app, calendar, bookings pages

Day briefing beside

A day briefing beside bookable slots supplied by the merchant, for reception and appointment booking.

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/dashboard-day-briefing-beside

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import DashboardDayBriefingBeside from '@/components/trame/blocks/dashboard/dashboard-day-briefing-beside.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"
}
],
slots: [
{
id: "s1",
start: "2026-10-15T09:00",
label: "Cut · Leah"
},
{
id: "s2",
start: "2026-10-15T09:45",
label: "Cut · Samir"
}
],
create: "create",
open: "event"
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe calendar’s heading ("Workshop events")
range*Rangethe period shown and its words
events*Event[]Datathe bookings of the day, as the merchant holds them, briefed beside the slots
slots*Slot[]Datathe free slots of the day, exactly as the host says they are free
createstringActionbooks a slot when given the slot
openstringActionthe page of an event
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Range range · 6 props
PropTypeDescription
label*stringWordsthe period in words, in the app’s language ("October 2026")
start*stringDesignthe day shown, YYYY-MM-DD
todaystringDesigntoday as the host knows it, YYYY-MM-DD, to mark it; absent: nothing is marked
previousstringActionthe previous period
nextstringActionthe next period
currentstringActionback to today
Event events[] · 5 props
PropTypeDescription
id*string | numberthe event’s id
start*stringDesignYYYY-MM-DD or YYYY-MM-DDTHH:mm, in the calendar’s own time
endstringDesignYYYY-MM-DDTHH:mm; one hour after the start when absent
title*stringWordsthe event’s title
statusstringWordsthe state in words ("Confirmed", "To be confirmed"): a state is never colour alone
Slot slots[] · 4 props
PropTypeDescription
id*string | numberthe event’s id
start*stringDesignYYYY-MM-DDTHH:mm
endstringDesignYYYY-MM-DDTHH:mm
labelstringWordsthe service or person ("Cut · Léa")
Options options · 3 props
PropTypeDescription
createLabelstringWordswhat the create button says ("New appointment")
emptystringWordswhat a period with nothing in it 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
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
  • 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, slots from your app

A dashboard 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 dashboard blocks

  • Focus: what needs an answer today comes first and large, the figures a quiet strip under it, the chart and the latest records after.
  • Goal progress bullet: progress against a goal: one bar per measure, a tick for the target.
  • Goal progress gauge: one to three scores or quotas as half-dials with the latest value large under the arc and the target as a tick.
  • Goal progress rings: two to four daily or monthly goals as concentric rings closing toward their target, with each value, target and share written beside them.
  • Goal progress target line: the road to a goal: each measure over time as a line under its dashed target, the band above the target tinted, when how it got there matters.
  • Leaderboard podium: a team page or a monthly review where the top three matter: three raised tiles, the first in the middle, the rest as rows under them.
  • Leaderboard ranked rows: a dashboard card of 3 to 10 entries: rank, avatar, name, the value right-aligned and its signed change.
  • Leaderboard table: a long ranking of 12 or more to scan and compare: rank, name, value, change and share columns, the viewer’s own row pinned when outside the top ten.

All 20 dashboard blocks