Workshop ledger feed — Storefront block

Pro

storefront-workshop-ledger-feed · for about, product, sustainability pages

Workshop ledger feed

Running totals beside dated entries with their kind: repairs done, take-backs, sustainability records; 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/storefront-workshop-ledger-feed

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontWorkshopLedgerFeed from '@/components/trame/blocks/storefront/storefront-workshop-ledger-feed.vue'

const props = {
title: "Our repair log",
lead: "Every repair done at the workshop is logged here, good news or bad.",
rows: [
{
label: "Repairs done in 2025",
value: "214"
},
{
label: "Pieces saved",
value: "198"
}
],
figures: [
{
label: "Repairs done in 2025",
value: "214"
},
{
label: "Pieces saved",
value: "198"
}
],
entries: [
{
date: "December 12, 2025",
kind: "Repair",
text: "Replaced twelve handles on a batch of bags from 2019.",
value: "12 pieces",
status: "improved"
},
{
date: "October 3, 2025",
kind: "Setback",
text: "Average repair time went from 3 to 5 weeks due to a leather shortage.",
status: "worse"
}
],
source: "Workshop accounts, 2025 fiscal year, reviewed by our CPA",
asOf: "As of December 31, 2025",
footnote: "Updated once a year, in January."
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe claim these books prove ("Where each euro of a bag goes")
leadstringWordswhat the figures cover and why the merchant publishes them
rows*Row[]Datathe merchant’s own lines: three at least
figuresFigure[]running totals shown beside the ledger
entries*Entry[]Datathe dated entries of the ledger, newest first
source*stringWordswhere the figures come from ("Workshop accounts, 2025 financial year, certified by our accountant")
asOf*stringWordsthe date of the figures, as the merchant wrote it ("At 31 December 2025")
footnotestringWordshow often it is updated, or a limit of the figures
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Row rows[] · 6 props
PropTypeDescription
label*stringWordswhat the line counts ("Materials", "Workshop", "Shop margin")
amountnumberan amount in cents
sharenumberits share of the whole, in percent
valuestringWordsa figure that is not money, as the merchant writes it ("214 repairs", "3 rooms")
beforestringWordsthe same measure at the first date, for then-now ("41%")
notestringWordsone short line of explanation
Figure figures[] · 2 props
PropTypeDescription
label*stringWordswhat it counts
value*stringWordsits figure, as written
Entry entries[] · 5 props
PropTypeDescription
date*stringWordsthe date as the merchant wrote it ("12 June 2026")
kindstringWordswhat kind of entry ("Repair", "Trade-in")
text*stringWordswhat was done or recorded
valuestringWordsits figure, as written ("12 pieces")
status'improved' | 'worse' | 'steady'whether it went better or worse than before, as the merchant judges
Options options · 2 props
PropTypeDescription
currencystringDesignISO 4217, EUR by default
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
moneyformats a price, given in cents
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 storefront section, for about, product, sustainability 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 storefront blocks

  • Viewed products compact rail: small compact cards in a tight rail: the "Recently viewed" section on a product or cart page.
  • Vote ballot: A list of candidates and supplied standings with a vote action; the merchant's own votes and dates only.
  • Welcome offer led: a welcome offer is traded for the address: the offer as the headline, the form beside it.
  • Wishlist alerts beside list: the alert settings beside the watched products: a customer who wants to choose what they are told.
  • Wishlist board: a long list of things to look at, not to compare: a moodboard of pictures at their own proportions with the actions on the picture (a fashion or decoration shop).
  • Wishlist grid: product cards with a way off the list and a way to the cart: the default for any shop.
  • Wishlist popover: the header’s heart and the small panel it opens: each saved product in a line with its price, a way to the cart and a way off the list, the panel scrolling past a few: a shop header, where the list is checked between two pages.
  • Wishlist watch list: rows with the price when saved and now, the stock, and an alert button: a list used to wait for a price or a restock.

All 409 storefront blocks