Record comments boxed — Activity block

Pro

activity-record-comments-boxed · for record, app pages

Record comments boxed

A discussion on a record: events with a body (comment, note) in an inset box, internal notes tinted

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/activity-record-comments-boxed

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import ActivityRecordCommentsBoxed from '@/components/trame/blocks/activity/activity-record-comments-boxed.vue'

const props = {
title: "Conversation",
intro: "Everything that happened on this order.",
events: [
{
id: 1,
at: "2:32 PM",
exact: "October 9, 2026, 2:32 PM",
day: "Today",
actor: "Camille Roux",
verb: "changed the status of",
object: "Order 2041",
detail: "From “Preparing” to “Shipped”",
type: "status"
},
{
id: 2,
at: "11:05 AM",
exact: "October 9, 2026, 11:05 AM",
day: "Today",
actor: "Nadia Benali",
verb: "commented on",
object: "Order 2041",
detail: "The customer is asking for delivery before Friday.",
body: "The customer is asking for delivery before Friday. I’ve let the carrier know; they’ll get back to us tomorrow morning.",
type: "comment"
}
],
options: {
footnote: "History is kept for the period set in the workspace settings."
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe discussion’s heading ("Exchanges")
introstringWordsone line under the title
events*Event[]Datathe messages, newest first
filtersFilter[]the event types to filter by
morestringActionloads the next messages; a link, never an infinite scroll
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Event events[] · 13 props
PropTypeDescription
id*string | numberthe event’s id
at*stringWordswhen, as the app writes it ("14:32", "3 Oct."): never computed here
exactstringWordsthe full date, shown as the time’s title
daystringWordsthe day heading it belongs to ("Today", "Yesterday")
actor*stringWordswho wrote it
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
verb*stringWordswhat they did, as a phrase ("commented", "added an internal note to")
object*stringWordswhat it was done to
detailstringWordsa secondary line: a path, a size, a quote
bodystringWordsthe text of a comment or a note, shown in its own box
attachmentstringWordsthe name of an attached file
internalbooleanan internal note, tinted
type'comment' | 'note' | 'create' | 'update' | 'upload' | 'delete' | 'status' | 'payment' | 'invite' | 'other'what kind of event it is; it picks the icon
Filter filters[] · 2 props
PropTypeDescription
value*stringDesignan event type
label*stringWordsthe value in words, as shown
Options options · 6 props
PropTypeDescription
groupByDaybooleantrue: the events are grouped under each day
footnotestringWordsa line under the list (retention, timezone), as configured
internalLabelstringWordsthe tag on an internal note ("Internal note")
emptystringWordswhat an empty discussion says
pageSizenumbermessages shown before "See more"
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: more
  • Reads events from your app

A activity section, for record, app 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 activity blocks

  • Event briefing sidebar: A category-by-category briefing with a summary rail, using only the app’s own recorded events.
  • Feed grouped: a workspace-wide feed with many events: rows under day headings, avatar beside the sentence.
  • Feed rail: a record’s history on its page: a hairline with an icon per event, the sentence and its time.
  • Feed steps: stages with a state (done, running, upcoming): a process or an onboarding that moves forward.
  • Notification center panel: the popover-sized list beside the bell: grouped Today / Earlier, unread marked, everything marked read.
  • Notification digest grouped: a quiet morning: the notifications grouped by the record they concern, each group with its count.
  • Notification feed tabbed: the full notifications page: tabs All / Unread / Mentions, extra filter chips, room for long sentences.
  • Read archive split: Unread work beside the read archive, for scanning attention and context together without hiding either.

All 10 activity blocks