Latest issue signup cover card — Newsletter block

Pro

newsletter-latest-issue-signup-cover-card · for journal, home, article pages

Latest issue signup cover card

The latest issue shown as a cover card beside the form: one strong issue to sell the next ones

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/newsletter-latest-issue-signup-cover-card

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import NewsletterLatestIssueSignupCoverCard from '@/components/trame/blocks/newsletter/newsletter-latest-issue-signup-cover-card.vue'

const props = {
title: "The workshop journal, one issue a month",
lead: "One long read, three finds and news from the workshop. Nothing else.",
issues: [
{
id: "n41",
number: "No. 41",
title: "Repair, a matter of patience",
excerpt: "A month in the repair workshop: what comes back, what goes out, what lasts.",
image: "https://images.unsplash.com/photo-1531188929123-0cfa61e6c770?w=1600&q=80",
alt: "A hand punching holes in leather with a pricking iron",
date: "October 2, 2026",
readingTime: "9 min read"
},
{
id: "n40",
number: "No. 40",
title: "The colors of fall",
excerpt: "Four shades, discussed in daylight.",
date: "September 4, 2026",
readingTime: "6 min read"
}
],
open: "article",
submit: "subscribe",
submitLabel: "Get the journal",
consent: "Your address is only used to send you the journal. Every issue includes an unsubscribe link.",
options: {
eyebrow: "The journal",
frequency: "One issue a month"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the reader gets by subscribing ("The workshop journal, once a month")
leadstringWordsthe promise in one or two sentences: what each issue contains
issues*Issue[]Datathe latest issues actually sent, newest first: the first is shown as a cover
openstringActionthe action that opens one issue; the issue is its record
submit*stringActionthe page action that receives the address (posted by the form)
submitLabel*stringWordswhat the button does ("Get the journal")
consent*stringWordsthe purpose of the address and how to leave, as the merchant states it, next to the field
subscriberCountnumberDatathe number of readers, only when the merchant counts and states it
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Issue issues[] · 10 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"
numberstringWordsthe issue’s number as the journal prints it ("No. 41")
Author issues[].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
Options options · 5 props
PropTypeDescription
eyebrowstringWordswhat the journal is ("The journal")
frequencystringWordshow often it is sent, as the merchant writes it ("One issue a month")
status'success' | 'error'Datathe answer to the last submission, when the host re-renders the page with it
statusTextstringWordswhat that answer says
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: open, submit
  • Reads articles from your app

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

More newsletter blocks

  • Hub picker cards: a card for each newsletter with its cadence, a tick box and a sample link, then one address field: several letters to choose from.
  • Issue feed: one signup row over the stack of past issues (and the lists in a second tab): a journal that wants its archive read.
  • Issue preview split preview: the merchant has a real newsletter: the form beside a card showing what an issue looks like.
  • Journal signup with issues: the journal has already gone out: the form beside its last issues, as proof of what arrives.
  • Letter archive collage: an intro with a collage of the merchant’s pictures and the form, a sample archive beside it: one letter with a real history.
  • Letter signup signed: a letter written by one person: their note and their face beside the form, for an editorial tone.
  • Pictured signup: editorial or lifestyle shops: a picture the full height of the block, the form on its other side.
  • Production signup stepped: a batch in the making: the form beside its stages, with the one in progress marked — the merchant’s own only.

All 25 newsletter blocks