Trial timeline horizontal — Pricing block
Propricing-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-horizontalUsage
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.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| intro | string | Wordsa sentence or two under the heading |
| steps* | Step[] | the steps shown, in order |
| caption | string | Wordsa line under the steps |
| cta | Cta | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Step steps[] · 4 props
| Prop | Type | Description |
|---|---|---|
| marker* | string | Wordswhen the step happens, e.g. "Day 1" |
| title* | string | Wordsthe step’s title |
| text* | string | Wordsthe step’s text |
| decisive | boolean | true: the step that matters most, set apart |
Cta cta · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe words on the button or link |
| action* | string | Actiona named action of the page |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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.