Signup guide numbered — Newsletter block

Pro

newsletter-signup-guide-numbered · for landing, home pages

Signup guide numbered

The signup deserves its rules told: the form above, the mechanics as numbered columns below — 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-signup-guide-numbered

Usage

Its demo data, shortened (Using blocks).

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

const props = {
title: "How the waitlist works",
lead: "Leave your email: we send one message on opening day, so you can order before the public launch.",
submitLabel: "Notify me",
consent: "Your email is used only for this reminder and is deleted after the launch.",
joinAction: "waitlist.join",
mechanics: [
{
title: "Leave your email",
text: "One field, no other questions.",
rule: "First come, first served"
},
{
title: "Confirm in the email",
text: "One click, and your spot is held.",
rule: "Without confirmation, the spot is released after 7 days"
}
],
options: {
eyebrow: "Early access"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the visitor is waiting for ("The next drop arrives in November")
leadstringWordsone or two sentences on what joining gives: first access, a reminder, nothing else
submitLabel*stringWordswhat the button does ("Notify me")
consentstringWordsthe purpose of the address and the right to leave, as the merchant states it, under the field
joinAction*stringActionthe page action that receives the address (posted by the form)
countstringWordshow many people already joined, only when the merchant states a real figure
mechanics*Mechanic[]how signing up works, step by step
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Mechanic mechanics[] · 3 props
PropTypeDescription
title*stringWordsthe step ("Leave your address")
text*stringWordsone sentence on what happens
rulestringWordsthe rule that holds ("First come, first served")
Options options · 4 props
PropTypeDescription
eyebrowstringWordsa short line above the title ("Early access")
status'success' | 'error'Datathe answer to the last submission, when the host re-renders 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
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: subscribe

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

Built with

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

More newsletter blocks

  • 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.
  • Release signup split date: a single dated release: its date set large, what is in it, the form beside it — the merchant’s own only.
  • Signup popup picture beside: A picture and signup form inside the host's dialog; the merchant's own offer only.
  • Signup popup picture top: A narrow centred card whose top half is the picture, the words and the field centred under it: a strong product picture; the merchant's own offer only.
  • Signup popup side sheet: A full-height sheet at the right edge, the words and the field at the top and the picture filling the bottom: a less blocking welcome on desktop; the merchant's own offer only.
  • Signup statement centered: a newsletter, waitlist or early-access call that is the section’s whole point: the collage title very large and centred, the field and its button as one pill row, the count under it.

All 25 newsletter blocks