Annual letter split — About block
Proabout-annual-letter-split · for about pages
Annual letter split
An eyebrow with the period, a title and short parts (what worked, what did not, what comes next): a yearly review the author signs; 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/about-annual-letter-splitUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutAnnualLetterSplit from '@/components/trame/blocks/about/about-annual-letter-split.vue'
const props = {
title: "Our 2025 season, from the boathouse",
body: [
"Every winter, once the boats are racked and the river is too high to row, I go back over our season with the committee. Here is what 2025 taught Riverside Rowing Club."
],
sections: [
{
heading: "What worked",
text: "Learn-to-row filled every course from April to September, and 41 newcomers stayed on as members. The junior squad brought home its first regatta medal in six years."
},
{
heading: "What went wrong",
text: "We lost three weeks of water in June to flooding, and the boathouse roof repair ran late. We drew a simple rule from it: no outing is booked without a safety boat and a dry plan B on the rowing machines."
}
],
author: {
name: "Sam Whitaker",
role: "Head coach, Riverside Rowing Club",
avatar: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=1600&q=80"
},
date: "At the boathouse, January 12, 2026",
options: {
eyebrow: "2025 in review",
closing: "See you on the water.",
revised: "Added the paragraph about the June floods."
}
}
</script>
<template>
<AboutAnnualLetterSplit v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the letter is about, in a few words ("Why we do this work") |
| salutation | string | Wordshow the letter opens ("Dear customer,") |
| body* | string[] | Wordsone paragraph, in the author’s own words |
| sections* | Section[] | the review, in short parts, for the annual variant: what worked, what did not, what comes next |
| author* | Author | Datathe real person who writes and signs: name and role |
| date | string | Wordsthe date as the author wrote it ("Lyon, 3 March 2026"): never computed |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Section sections[] · 2 props
| Prop | Type | Description |
|---|---|---|
| heading* | string | Wordswhat the paragraph covers ("What worked") |
| text* | string | Wordswhat the author says about it |
Author author · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsthe period or the occasion ("2025 review", "A letter from the workshop") |
| closing | string | Wordsthe closing line before the signature ("Thank you for following us.") |
| revised | string | Wordsa note when the letter was revised ("Revised on 12 April 2026: added the paragraph on lead times.") |
| 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 |
| asset | a picture’s address as your app serves it |
| 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
A about section, for about pages; it uses @vueuse/core, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More about blocks
- Build criteria questions: how the merchant picks what to build, as four questions: explaining the choices, not listing them.
- Commitments cards: cards with the rule, its text and what it costs the merchant: when honesty about the trade-off is the point; the merchant’s own only.
- Commitments numbered rows: large numerals, a title and two lines per rule: an ordered list of three to twelve principles; the merchant’s own only.
- Company facts list: a plain label and value list with the claim in prose beside it: the company’s facts in one place; the merchant’s own only.
- Emphasized statement underlined: the conviction set large and centred, one key phrase underlined or highlighted: a short statement with one idea to keep; the merchant’s own only.
- Founder letter: a signed letter in one narrow column, salutation, paragraphs, signature and date: one voice speaking to the customer; the merchant’s own only.
- Intro long prose: a wide headline then up to three paragraphs in a readable column: when there is real story to read.
- Intro rail lead: an editorial about page: the eyebrow as a quiet label in a left rail, the title, a large first paragraph and the others smaller at the right, the action as a text link.