Addons chips under plans — Pricing block

Pro

pricing-addons-chips-under-plans · for landing, pricing pages

Addons chips under plans

A slim band right under the plans, when the extras are a footnote to the offer: the title at the left, each extra a price pill that opens its sentence; the merchant’s own prices 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-addons-chips-under-plans

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PricingAddonsChipsUnderPlans from '@/components/trame/blocks/pricing/pricing-addons-chips-under-plans.vue'

const props = {
title: "Extras, only if you need them",
lead: "They work with every plan and can be removed at any time.",
addons: [
{
name: "Extra team member",
text: "One more admin login, with its own permissions.",
icon: "users",
price: 900,
unit: "/ month per person",
action: {
label: "Add",
action: "addon",
record: {
id: "seat"
}
}
},
{
name: "Custom domain",
text: "Your shop at your own address, security certificate included.",
icon: "globe",
price: 1200,
unit: "/ year",
action: {
label: "Add",
action: "addon",
record: {
id: "domain"
}
}
}
],
footnote: "Prices exclude tax and are billed with your subscription."
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s title ("Options, if you need them")
leadstringWordsone or two sentences: which plans they apply to, how they are billed
addons*Addon[]the add-ons, each with its price
footnotestringWordssmall print under the extras (taxes, billing, cancellation)
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Addon addons[] · 7 props
PropTypeDescription
name*stringWordsthe extra, in a few words ("Custom domain")
text*stringWordswhat it adds, in one sentence
icon'users' | 'globe' | 'coins' | 'sparkles' | 'shield' | 'database' | 'support' | 'mail' | 'palette' | 'plug' | 'chart' | 'package'Designa pictogram for the extra
pricenumberDatathe price in cents, as the merchant set it
priceLabelstringWordswords instead of an amount ("On quote", "Free the first year")
unitstringWordswhat the price is per ("/ month", "per 1,000 credits")
actionActionthe addon’s call to action: its words and the page action
Action addons[].action · 3 props
PropTypeDescription
label*stringWordswhat happens ("Add")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
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
moneyformats a price, given in cents
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: addons[].action

A pricing section, for landing, pricing pages; it uses @lucide/vue.

Built with

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

More pricing blocks

  • Billing estimator cards: two billing periods side by side with the computed difference: monthly against annual — the merchant’s own only.
  • Comparison card columns: each offer as one tall card from its header to its action, ticks in soft circles: a lighter grid for few offers — the merchant’s own only.
  • Comparison focus aside: the chosen offer pulled out as a card beside the grid of the others: highlight one without dropping the table — the merchant’s own only.
  • Comparison list: One offer and its terms as a definition list, for a single supplied offer; the merchant’s own only.
  • Comparison per offer: one folded list per offer showing only what it includes: phone-first, good from four offers — the merchant’s own only.
  • Comparison service levels: one card per service tier listing its commitments (delay, channel, contact): support or care plans — the merchant’s own only.
  • Comparison us vs them: two columns, the usual terms against the merchant’s, in words: a shop publishing its conditions.
  • Cost ledger: price transparency: line items adding up to a bold total; the merchant’s own only.

All 32 pricing blocks