Front page lead trio — Blog block

Pro

blog-front-page-lead-trio · for home, journal pages

Front page lead trio

A lead story over its cover, then three stories of equal weight below it

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/blog-front-page-lead-trio

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import BlogFrontPageLeadTrio from '@/components/trame/blocks/blog/blog-front-page-lead-trio.vue'

const props = {
eyebrow: "Field notes",
title: "Far Meridian, from the road",
lead: {
id: "a1",
title: "After dark in the old port: a night market, stall by stall",
excerpt: "Lanterns go up at seven, the fruit sellers stay until the last ferry. Our guide Amira walks us through the market she grew up in, and the six stalls she never skips.",
image: "https://images.unsplash.com/photo-1763811939587-44f0e29adfcd?w=1600&q=80",
alt: "People browsing fruit stalls at a night market, under warm lights and old stone walls",
section: "Destinations",
author: {
name: "Amira Haddad",
role: "Guide, Far Meridian"
},
date: "2026-10-02",
readingTime: "9 min read"
},
articles: [
{
id: "a2",
title: "Twelve hours on the desert road",
excerpt: "Two drivers, one cooler and the red rocks that change color every hour.",
image: "https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1600&q=80",
alt: "An empty road running between red rocks toward the mountains",
section: "On the road",
author: {
name: "Jonah Reyes"
},
date: "2026-09-24",
readingTime: "6 min"
},
{
id: "a3",
title: "Rowing across the turquoise lake at dawn",
excerpt: "Why we wake the group at five on day four, and nobody ever complains.",
image: "https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1600&q=80",
alt: "A rowing boat on a turquoise lake ringed by mountains",
section: "Field notes",
author: {
name: "Amira Haddad"
},
date: "2026-09-15",
readingTime: "5 min"
}
],
cta: {
label: "See all field notes",
action: "journal"
},
open: "article",
options: {
mood: "inverse"
}
}
</script>

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

Props

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

PropTypeDescription
eyebrowstringWordsa small line above the title ("The journal", "Issue 41 · October 2026")
title*stringWordsthe title of the page or the section ("The workshop journal")
lead*LeadDatathe lead story: its cover, standfirst (excerpt), section, author, date and reading time as the merchant wrote them
articles*Article[]Datathe other stories, newest first; the block shows as many as its variant can hold
ctaCtathe entry to every story ("See all")
openstringActionthe action that opens one article; the article is its record
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Lead lead · 9 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
title*stringWordsthe article’s title
excerptstringWordsa sentence or two from the article
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the cover picture shows
sectionstringWordsthe section it belongs to, e.g. "Guides"
authorAuthorwho wrote it
datestringWordswhen it was published, as the site writes it
readingTimestringWordshow long it takes to read, e.g. "6 min"
Author lead.author · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Article articles[] · 9 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
title*stringWordsthe article’s title
excerptstringWordsa sentence or two from the article
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the cover picture shows
sectionstringWordsthe section it belongs to, e.g. "Guides"
authorAuthorwho wrote it
datestringWordswhen it was published, as the site writes it
readingTimestringWordshow long it takes to read, e.g. "6 min"
Author articles[].author · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Cta cta · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Options options · 2 props
PropTypeDescription
showAuthorsbooleanwhether the articles’ authors are shown
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
asseta picture’s address as your app serves it
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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: cta, open
  • Reads articles from your app

A blog section, for home, journal pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

More blog blocks

  • Article list scroll row: five or more articles in one swipeable row, ending on the entry to all of them: a home page.
  • Article list timeline: the articles set on a rail, grouped by the month of their date: an archive one reads season by season.
  • Chapter strip: a slim strip of chapters with the current one marked: inside an article that belongs to a series.
  • Guide shelves only: no hero, a heading and shelves of three or four cards, each with "see all": a section of a home page.
  • Guide shelves tabs: one shelf at a time, the topic tabs swap its guides, the first one large: four to twelve guides in a small space.
  • Journal masthead: a journal that sells itself as a title: the name very large and centred between hairlines, the lead beside its cover, other stories in ruled text columns.
  • Latest lines: one line per article, date and title, no excerpt: a teaser at the foot of a page or of a product.
  • Lead and rail: the usual blog home: one large lead story and two or three short stories stacked beside it.

All 35 blog blocks