Trial timeline horizontal — Pricing block

Pro

pricing-trial-timeline-horizontal · for landing, home, product pages

Trial timeline horizontal

A short reassurance journey across a line, vertical on phones; the merchant’s own only.; 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/pricing-trial-timeline-horizontal

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PricingTrialTimelineHorizontal from '@/components/trame/blocks/pricing/pricing-trial-timeline-horizontal.vue'

const props = {
title: "Know what comes next",
intro: "A demo journey, to be completed with the merchant’s real terms.",
caption: "Timelines and commitments are not filled in for this example.",
cta: {
label: "View the terms",
action: "trial-terms"
},
steps: [
{
marker: "Discover",
title: "Get your bearings",
text: "Describe here what’s available at the start of the journey."
},
{
marker: "Explorer",
title: "Try it in your own setting",
text: "Describe the steps your team offers."
}
]
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s heading
introstringWordsa sentence or two under the heading
steps*Step[]the steps shown, in order
captionstringWordsa line under the steps
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Step steps[] · 4 props
PropTypeDescription
marker*stringWordswhen the step happens, e.g. "Day 1"
title*stringWordsthe step’s title
text*stringWordsthe step’s text
decisivebooleantrue: the step that matters most, set apart
Cta cta · 2 props
PropTypeDescription
label*stringWordsthe words on the button or link
action*stringActiona named action of the page
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
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

A pricing section, for landing, home, product pages; it uses @lucide/vue, 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 pricing blocks

  • Price calculator receipt: the inputs beside an itemised receipt with a large total: an offer priced from several quantities — the merchant’s own only.
  • Price calculator slider plan: one slider mapped to the merchant’s bands, a compact card naming the band reached: usage-based tiers.
  • Savings calculator ledger: one wide card, the visitor’s volume and cost on the left, a muted panel on the right with the net saving very large over its breakdown: a product whose price is easiest to justify by the work it replaces — the merchant’s own fee only.
  • Savings calculator stacked: the two questions side by side above a dark band that writes the sum as one line (volume × cost − fee = net): a page that wants the arithmetic itself to be the argument, in a narrower column.
  • Ticket tiers cards: tiers as cards that say what each includes: fares that differ by more than their price (VIP, pass, workshop).
  • Ticket tiers list: a few tiers read as rows, a stepper on each: a concert or a talk with plain full, reduced and group fares.
  • Trial offer split: Steps beside the exact offer and terms supplied by the merchant; the merchant’s own only.; the merchant’s own only.
  • Usage comparison matrix: situations in rows, products in columns, a mark for the fit: an answer key for a range where several pieces overlap.

All 32 pricing blocks