Guide signup split form — Newsletter block

Pro

newsletter-guide-signup-split-form · for landing, article, portfolio, product pages

Guide signup split form

One guide traded for an address: its cover and contents beside the field; 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/newsletter-guide-signup-split-form

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import NewsletterGuideSignupSplitForm from '@/components/trame/blocks/newsletter/newsletter-guide-signup-split-form.vue'

const props = {
title: "The guide to making your wool sweaters last",
lead: "Twelve pages on washing, drying and storing them without damage.",
files: [
{
name: "Fall-winter catalog",
description: "One line to say what this document is for and who it’s for.",
format: "PDF",
size: "1.0 MB",
updated: "Updated September 2026",
action: "file.download",
record: {
id: "f0"
},
cover: "https://images.unsplash.com/photo-1630734277837-ebe62757b6e0?w=1600&q=80",
alt: "The document’s cover"
}
],
bullets: [
"The right way to wash",
"Mending a snag"
],
gate: {
label: "Get the guide by email",
submitLabel: "Get the guide",
action: "guide.request",
consent: "Your address is used to send you this guide, then deleted."
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat is offered ("The care guide for wool clothing")
leadstringWordsone or two sentences on what the file is for
bulletsstring[]Wordsone thing the file contains
files*File[]the files the guide holds, each with its name and size
gate*Gatethe email form that sends the guide
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
File files[] · 9 props
PropTypeDescription
name*stringWordsthe file’s name as the visitor sees it
descriptionstringWordsone line on it
format*stringWordsits format ("PDF")
sizestringWordsits size, as the merchant states it ("2.4 MB")
updatedstringWordsits last update, as written ("Updated in September 2026")
coverstringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the cover shows
action*stringActionthe page action that serves the file
recordRecord<string, unknown>Datathe record the action opens, if any
Gate gate · 4 props
PropTypeDescription
label*stringWordswhat the address is asked for ("Get the guide by email")
submitLabel*stringWordsthe button’s words ("Get the guide")
action*stringActionthe page action that receives the address (posted by the form)
consentstringWordsthe purpose of the address, as the merchant states it
Options options · 5 props
PropTypeDescription
eyebrowstringWordsa short line above the title
downloadLabelstringWordsthe download buttons’ words ("Download")
status'success' | 'error'Datathe answer to the last submission from the host
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: files[], gate

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

Built with

The components this block is made of; each one installs on its own too.

More newsletter blocks

  • Email capture centered: the classic block of a home page: a title, one line of promise, one field.
  • Facts: the merchant states real figures about the letter: its facts as tiles beside the form.
  • Hub checkbox grid: a compact two-column checklist and one update button: preferences for someone who already subscribes.
  • 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.
  • Latest issue signup cover card: the latest issue shown as a cover card beside the form: one strong issue to sell the next ones.

All 25 newsletter blocks