History year ledger — Timeline block
Protimeline-history-year-ledger · for about pages
History year ledger
One line per year in a boxed table: eight to twelve short milestones; 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/timeline-history-year-ledgerUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TimelineHistoryYearLedger from '@/components/trame/blocks/timeline/timeline-history-year-ledger.vue'
const props = {
title: "Our story in dates",
lead: "What worked, what didn’t, and what we kept from it.",
entries: [
{
year: "2012",
title: "A workbench and a machine",
text: "Camille opens the workshop in a borrowed garage and sews the first bags at night.",
image: "https://images.unsplash.com/photo-1787005241178-c9006ea9610b?w=1600&q=80",
alt: "Hands tracing a template’s outline in pencil on a piece of leather"
},
{
year: "2013",
title: "The first model sold",
text: "The “Brise” bag goes on sale in a run of twenty. After a month, only one is left in stock.",
image: "https://images.unsplash.com/photo-1657603738389-951c374b740c?w=1600&q=80",
alt: "A cognac leather satchel with two pockets and its shoulder strap, on a light background"
}
],
footnote: "We keep the bad years too: they taught us as much as the good ones."
}
</script>
<template>
<TimelineHistoryYearLedger v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the story is ("Our story in dates") |
| lead | string | Wordsone sentence introducing it |
| entries* | Entry[] | the merchant’s own milestones, oldest first |
| footnote | string | Wordsa line stating a limit or a promise ("We keep the bad years too.") |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Entry entries[] · 5 props
| Prop | Type | Description |
|---|---|---|
| year* | string | Wordsthe date as the merchant writes it ("2012", "March 2018"): never computed |
| title* | string | Wordswhat happened, in a few words |
| text | string | Wordsone or two sentences, including what went wrong when it did |
| image | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordsthe picture’s description |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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 |
|---|---|
| label | your word for an interface key, or undefined to keep the block’s own |
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 timeline section, for about pages; it uses clsx, motion, tailwind-merge.
More timeline blocks
- Object chronicle split: one picture of the first product beside its dated changes: the history of a single object; the merchant’s own only.
- Visual chronicle alternating: cards on either side of a centre line, each with its picture: a visual story with photographs; the merchant’s own only.
- Visual chronicle picture rail: a line across the page with a small landscape picture above each point and the year, title and words under it, running past the page’s edge and scrolled sideways: five to ten dated moments with pictures, lighter than alternating; the merchant’s own only.
- Visual chronicle picture slides: one chapter at a time, its picture large and its words beside, the years on an axis under it as the navigation: a brand story with a few strong photographs; the merchant’s own only.
- Visual chronicle sticky year: the year of the entry in view set huge in a column that stays in place while the entries (picture, title, words) scroll beside it: a long history, a house or a family business where the passing years are the theme; the merchant’s own only.