Addons chips under plans — Pricing block
Propricing-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-plansUsage
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.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s title ("Options, if you need them") |
| lead | string | Wordsone or two sentences: which plans they apply to, how they are billed |
| addons* | Addon[] | the add-ons, each with its price |
| footnote | string | Wordssmall print under the extras (taxes, billing, cancellation) |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Addon addons[] · 7 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe extra, in a few words ("Custom domain") |
| text* | string | Wordswhat it adds, in one sentence |
| icon | 'users' | 'globe' | 'coins' | 'sparkles' | 'shield' | 'database' | 'support' | 'mail' | 'palette' | 'plug' | 'chart' | 'package' | Designa pictogram for the extra |
| price | number | Datathe price in cents, as the merchant set it |
| priceLabel | string | Wordswords instead of an amount ("On quote", "Free the first year") |
| unit | string | Wordswhat the price is per ("/ month", "per 1,000 credits") |
| action | Action | the addon’s call to action: its words and the page action |
Action addons[].action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Add") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
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 |
| money | formats a price, given in cents |
| 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:
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.