Plans with enterprise strip — Pricing block
Freepricing-plans-with-enterprise-strip · for home, landing, app pages
Plans with enterprise strip
3 priced offers plus a slim strip for the one on request, so the grid never mixes a price and no price
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-plans-with-enterprise-stripUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PricingPlansWithEnterpriseStrip from '@/components/trame/blocks/pricing/pricing-plans-with-enterprise-strip.vue'
const props = {
eyebrow: "Prooflane pricing",
title: "One price per developer, and every pull request reviewed",
lead: "Pick the plan that fits your team today. Switch whenever you like, and pay only for the seats you use.",
plans: [
{
name: "Team",
audience: "For product teams that ship every day.",
prices: {
monthly: 2900,
yearly: 29000
},
note: "14-day trial, no credit card needed.",
lead: "Everything in Solo, plus",
features: [
"Unlimited repositories",
"Review rules per team"
],
meters: [
{
label: "Reviews per month",
value: "Unlimited",
fill: 100
},
{
label: "Preview build minutes",
value: "10,000",
fill: 62
}
],
badge: "Most popular",
highlighted: true,
action: {
label: "Try Team",
action: "signup",
record: {
id: "team"
}
}
},
{
name: "Enterprise",
audience: "Your own cloud, regulated industries, high volumes.",
priceLabel: "Quote on request",
features: [
"Runs in your own cloud",
"Data stays in your region"
],
action: {
label: "Talk to the team",
action: "contact"
}
}
],
periods: [
{
key: "monthly",
label: "Monthly"
},
{
key: "yearly",
label: "Yearly",
saving: "2 months free"
}
],
footnote: "Prices are per developer seat per month and exclude tax. Yearly plans are billed once."
}
</script>
<template>
<PricingPlansWithEnterpriseStrip v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this is ("Pricing") |
| title* | string | Wordsthe section’s title, in a few words ("A clear price, no surprises") |
| lead | string | Wordsone or two sentences under the title: who the offers are for, what they all include |
| plans* | Plan[] | the plans, each with its prices and features |
| periods | Period[] | the billing periods to choose from, e.g. "Monthly" |
| footnote | string | Wordssmall print under the offers (taxes, trial, cancellation) |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Plan plans[] · 13 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe offer’s name ("Essential") |
| audience | string | Wordswho it is for, one line |
| price | number | Datathe price in cents when there is no period toggle |
| prices | Record<string, number> | Datathe price in cents for each period key, as the merchant set it |
| priceLabel | string | Wordswords instead of an amount ("Free", "On quote") |
| unit | string | Wordswhat the price is per when there is no period toggle ("/ month", "once") |
| note | string | Wordsa line under the price ("billed €190 a year", "no commitment"), as the merchant wrote it |
| lead | string | Wordsthe line before the list ("Everything in Essential, plus") |
| features | string[] | Wordsone inclusion |
| meters | Meter[] | meters: the quotas this offer sets, drawn as meters, when the offers differ by volume more than by features |
| badge | string | Wordsthe merchant’s own mark for this offer ("Most chosen") |
| highlighted | boolean | true: the plan the merchant recommends, set apart |
| action | Action | the plan’s call to action: its words and the page action |
Meter plans[].meters[] · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the quota counts ("Products", "Accounts") |
| value* | string | Wordsthe quota as the merchant writes it ("100", "Unlimited") |
| fill* | number | Datahow full the meter is drawn, 0 to 100, chosen to suggest the order of the offers |
Action plans[].action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Choose Pro") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Period periods[] · 4 props
| Prop | Type | Description |
|---|---|---|
| key* | string | Designthe period’s key, the one used in each plan’s prices ("monthly", "yearly") |
| label* | string | Wordsthe toggle’s word ("Monthly") |
| saving | string | Wordsthe saving, only as the merchant states it ("2 months free") |
| unit | string | Wordswhat the price is per in this period; empty uses the interface’s "/ month" for monthly and "/ year" for yearly |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| defaultPeriod | string | Designthe period key shown first and without JavaScript; the first period by default |
| highlight | boolean | the highlighted offer wears a brand gradient border; at the app’s expressive level a light runs once round it when it appears and once on hover, never in a loop |
| 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
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
plans[].action
A pricing section, for home, landing, app 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 curve: the price headline beside the rate curve with the visitor’s point on it: volume pricing — the merchant’s own only.
- 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.