Intro long prose — About block
Proabout-intro-long-prose · for about, home pages
Intro long prose
A wide headline then up to three paragraphs in a readable column: when there is real story to read
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-intro-long-proseUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutIntroLongProse from '@/components/trame/blocks/about/about-intro-long-prose.vue'
const props = {
eyebrow: "Halden Roe Architects",
title: "Houses drawn around the light they get, and the people who live in them.",
body: [
"Ingrid Halden and Tomas Roe opened the studio in 2011 with one rule: we visit a site at three different hours before drawing a single line. Most of our houses start from where the sun falls in winter.",
"We take on eight projects a year, new houses and careful renovations, and we stay on site until the keys are handed over."
],
cta: {
label: "See our houses",
action: "page",
record: {
id: "projects"
}
},
options: {
mood: "inverse"
}
}
</script>
<template>
<AboutIntroLongProse v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this is ("Our story", "The workshop") |
| title* | string | Wordswho the brand is, in one sentence, as the merchant would say it |
| body* | string[] | Wordsone paragraph of the merchant’s own words |
| cta | Cta | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Discover the workshop") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
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 |
|---|---|
| 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 |
| Link | your router’s link component |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
cta
A about section, for about, home pages; it uses class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
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.
- Makers maker cards: one card per maker with the workshop’s picture, or its initials when there is none, then the name, the place, what they make and the year and audit at its foot: a handful of makers the merchant can show; the merchant’s own only.
- Makers partner list: rows of name, place and what they make, with the year and the audit in small figures: the real list of makers.