Section page featured then list — Blog block

Pro

blog-section-page-featured-then-list · for journal, category pages

Section page featured then list

A section led by one article: the newest in full, the rest as a plain list below

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-section-page-featured-then-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import BlogSectionPageFeaturedThenList from '@/components/trame/blocks/blog/blog-section-page-featured-then-list.vue'

const props = {
breadcrumb: [
{
label: "Home",
action: "home"
},
{
label: "Journal",
action: "journal"
}
],
title: "Materials",
description: "Leathers, canvases, linens and threads: where they come from, how we choose them and how to make them last.",
categories: [
{
id: "tout",
name: "The whole journal",
count: 31
},
{
id: "matieres",
name: "Materials",
count: 12
}
],
activeCategory: "matieres",
articles: [
{
id: "a1",
title: "How we choose our leathers, and why we turn half of them down",
excerpt: "A visit to the tannery, three criteria we never compromise on, and what that means for the price.",
image: "https://images.unsplash.com/photo-1637759292654-a12cb2be085e?w=1600&q=80",
alt: "Cognac-brown leather, a close-up of a fold and a seam",
section: "Materials",
author: {
name: "Camille Roussel"
},
date: "2026-10-02",
readingTime: "7 min"
},
{
id: "a2",
title: "Linen, a fiber that gets better with age",
excerpt: "Why it wrinkles, and why that’s a good thing.",
image: "https://images.unsplash.com/photo-1528458909336-e7a0adfed0a5?w=1600&q=80",
alt: "Natural beige linen, up close",
section: "Materials",
author: {
name: "Ivy Marchand"
},
date: "2026-09-24",
readingTime: "4 min"
}
],
loadMore: {
label: "See more articles",
action: "journal",
record: {
id: "matieres"
}
},
open: "article"
}
</script>

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

Props

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

PropTypeDescription
breadcrumbBreadcrumb[]Datathe path to this section, from the home page; the last item is the section itself
title*stringWordsthe section’s name ("Materials", "Travel notebooks")
descriptionstringWordswhat the section covers, in a sentence or two
totalnumberDatathe number of articles in the section when only a page of them is given; otherwise it is counted from the articles
categoriesCategory[]Datasibling sections or topics, shown as links so the filter works without scripts
activeCategorystringDesignthe id of the category being viewed, if any
articles*Article[]Datathe section’s articles, newest first
loadMoreLoadMorethe entry to the next articles ("See more articles")
openstringActionthe action that opens one article; the article is its record
filterstringActionthe page action a category chip leads to; it receives the category
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Breadcrumb breadcrumb[] · 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
Category categories[] · 6 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
name*stringWordsthe category’s name
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the category’s picture shows
countnumberhow many products it holds
summarystringWordsone short line on the category
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
LoadMore loadMore · 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 · 1 props
PropTypeDescription
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: breadcrumb[], loadMore, open, filter
  • Reads articles, categories from your app

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

More blog blocks

  • More to read side column: the writer and the newsletter in the main column, a side column of related links and the most read the journal itself ranks: a news-like article.
  • Next in series lead card: one large "read next" card with its cover and, for a series or an issue, the list of its articles: a series or a numbered issue.
  • Past issues numbered list: numbered issues with their date and one line, a subscribe card beside them: a letter or a periodical.
  • Reading path numbered rail: a vertical rail of numbered steps with a line of why for each: a newcomer’s guided tour of the journal.
  • Series shelf cards: one card per series with its parts, total time and status: a journal that publishes in series.
  • Topic index guide cards: picture cards for how-tos, each with its practical line: a journal of guides and tutorials.
  • Topic index tiles icon: tiles with an icon, a count and a one-sentence scope: a journal with a handful of clear themes.
  • Topic rails cards rail: a swipeable row of picture cards for each topic, with its "see all": a journal with strong covers.

All 35 blog blocks