Ticket tiers list — Pricing block

Pro

pricing-ticket-tiers-list · for product, landing, event pages

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

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-ticket-tiers-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PricingTicketTiersList from '@/components/trame/blocks/pricing/pricing-ticket-tiers-list.vue'

const props = {
title: "Book your seats",
lead: "An evening of songs by candlelight, in the old factory’s vaulted hall.",
event: {
name: "Songs in the Workshop night",
when: "Saturday, March 14, 8:30 p.m.",
where: "The Factory Hall, Portland, OR",
image: "https://images.unsplash.com/photo-1791298043001-d6488112d8da?w=1000&q=80",
alt: "People around a workshop table, with pencils and markers in front of them"
},
tiers: [
{
id: "plein",
name: "Full price",
price: 2800,
description: "Open seating in the hall.",
includes: [
"A drink at intermission"
],
zone: "orchestre",
max: 8
},
{
id: "reduit",
name: "Reduced price",
price: 1800,
description: "Under 26, students and job seekers, with proof.",
zone: "orchestre",
max: 4
}
],
orderAction: "tickets",
options: {
eyebrow: "Concert",
fees: "Service fees included in the price shown.",
submitLabel: "Book"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the visitor does ("Book your places")
leadstringWordsone sentence on the event, as the organiser says it
eventEventthe event: its name, date and place
tiers*Tier[]the ticket tiers, each with its price
orderAction*stringActionthe page action that receives the quantities (posted by the form)
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Event event · 5 props
PropTypeDescription
name*stringWordsthe event’s name
when*stringWordsits date and time as the organiser wrote them ("Saturday 14 March, 8:30 pm")
wherestringWordsthe venue and city
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows
Tier tiers[] · 10 props
PropTypeDescription
id*stringDesignthe tier’s identifier, posted with its quantity
name*stringWordsthe tier’s name ("Full price")
price*numberan amount in cents
descriptionstringWordswho it is for or what it includes
includesstring[]Wordsone thing the tier includes
zonestringDesignthe id of the plan zone this tier gives access to (variant seated)
soldOutbooleanthe tier has no places left, as the organiser says
leftnumberplaces left, only when the organiser chooses to show it
minnumberthe fewest a visitor may take of this tier (a group rate), when the organiser sets one
maxnumberthe most a visitor may take of this tier
Options options · 4 props
PropTypeDescription
eyebrowstringWordsthe kind of event ("Concert")
feesstringWordswhat the price includes or leaves out, as the organiser states it ("Service fee included")
submitLabelstringWordsthe button’s words ("Book")
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
moneyformats a price, given in cents
asseta picture’s address as your app serves it
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: orderAction

A pricing section, for product, landing, event pages; it uses @lucide/vue, 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 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.
  • Trial offer split: Steps beside the exact offer and terms supplied by the merchant; the merchant’s own only.; the merchant’s own only.
  • Trial timeline horizontal: A short reassurance journey across a line, vertical on phones; the merchant’s own only.; the merchant’s own only.
  • Trial timeline vertical rail: A detailed journey beside an introductory column; 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