प्राइसिंग टेबल examples
हाइलाइट किए गए रिकमेंडेड प्लान, फ़ीचर सूचियों और मासिक या वार्षिक बिलिंग टॉगल के साथ तीन-स्तरीय प्राइसिंग सेक्शन।
हाइलाइट किए गए रिकमेंडेड टियर, प्रति-प्लान फ़ीचर सूचियों और मासिक या वार्षिक बिलिंग टॉगल के साथ तीन-कॉलम वाला प्राइसिंग सेक्शन। मोबाइल पर प्लान लिखे जाने के क्रम में एक ही कॉलम में स्टैक हो जाता है।
एक वैरिएंट में काम करने वाला मासिक और वार्षिक बिलिंग टॉगल शामिल है, जो React और सादे HTML दोनों में है। अन्य स्टैटिक मार्कअप हैं, जो कि अधिकांश साइटों को वास्तव में चाहिए होता है।
Three-tier pricing table
Starter, Pro, and Enterprise columns with an outlined, badged recommended plan. The recommended plan moves to the top on mobile.
export default function PricingTable() {
return (
<section className="mx-auto max-w-6xl px-4 py-12">
<div className="mb-10 text-center">
<h2 className="text-3xl font-bold text-gray-900">Simple pricing</h2>
<p className="mt-3 text-gray-600">Start free. Upgrade when your team grows.</p>
</div>
<div className="grid gap-6 lg:grid-cols-3">
<div className="relative rounded-xl border border-gray-200 bg-white p-6">
<h3 className="font-semibold text-gray-900">Starter</h3>
<p className="mt-1 text-sm text-gray-600">For side projects.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$0</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 project</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Community support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Start free</a>
</div>
<div className="relative order-first rounded-xl border-2 border-gray-900 bg-white p-6 lg:order-none">
<span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">Most popular</span>
<h3 className="font-semibold text-gray-900">Pro</h3>
<p className="mt-1 text-sm text-gray-600">For growing teams.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$24</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Unlimited projects</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Priority support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>100 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium bg-gray-900 text-white hover:bg-gray-700">Start trial</a>
</div>
<div className="relative rounded-xl border border-gray-200 bg-white p-6">
<h3 className="font-semibold text-gray-900">Enterprise</h3>
<p className="mt-1 text-sm text-gray-600">For larger organizations.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">Custom</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>SSO and audit logs</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Dedicated support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Custom contracts</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Contact sales</a>
</div>
</div>
</section>
);
}Pricing table with monthly and annual toggle
The same three tiers with a billing switch that updates prices in place. Buttons carry aria-pressed so the active period is announced.
"use client";
import { useState } from "react";
const plans = [
{
name: "Starter",
tagline: "For side projects.",
monthly: 0,
annual: 0,
features: ["1 project", "Community support", "1 GB storage"],
cta: "Start free",
featured: false,
},
{
name: "Pro",
tagline: "For growing teams.",
monthly: 24,
annual: 19,
features: ["Unlimited projects", "Priority support", "100 GB storage"],
cta: "Start trial",
featured: true,
},
{
name: "Enterprise",
tagline: "For larger organizations.",
monthly: null,
annual: null,
features: ["SSO and audit logs", "Dedicated support", "Custom contracts"],
cta: "Contact sales",
featured: false,
},
];
export default function PricingTable() {
const [annual, setAnnual] = useState(false);
const tab = "rounded-md px-4 py-1.5 text-sm font-medium ";
return (
<section className="mx-auto max-w-6xl px-4 py-12">
<div className="mb-10 text-center">
<h2 className="text-3xl font-bold text-gray-900">Simple pricing</h2>
<p className="mt-3 text-gray-600">Start free. Upgrade when your team grows.</p>
<div
className="mt-6 inline-flex rounded-lg border border-gray-200 p-1"
role="group"
aria-label="Billing period"
>
<button
type="button"
onClick={() => setAnnual(false)}
aria-pressed={!annual}
className={tab + (!annual ? "bg-gray-900 text-white" : "text-gray-600")}
>
Monthly
</button>
<button
type="button"
onClick={() => setAnnual(true)}
aria-pressed={annual}
className={tab + (annual ? "bg-gray-900 text-white" : "text-gray-600")}
>
Annual
</button>
</div>
</div>
<div className="grid gap-6 lg:grid-cols-3">
{plans.map((plan) => {
const price = annual ? plan.annual : plan.monthly;
return (
<div
key={plan.name}
className={
"relative rounded-xl bg-white p-6 " +
(plan.featured
? "order-first border-2 border-gray-900 lg:order-none"
: "border border-gray-200")
}
>
{plan.featured && (
<span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">
Most popular
</span>
)}
<h3 className="font-semibold text-gray-900">{plan.name}</h3>
<p className="mt-1 text-sm text-gray-600">{plan.tagline}</p>
<p className="mt-4">
<span className="text-4xl font-bold text-gray-900">
{price === null ? "Custom" : "$" + price}
</span>
{price !== null && <span className="text-sm text-gray-600">/month</span>}
</p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
{plan.features.map((feature) => (
<li key={feature}>{feature}</li>
))}
</ul>
<a
href="#"
className={
"mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium " +
(plan.featured
? "bg-gray-900 text-white hover:bg-gray-700"
: "border border-gray-300 text-gray-900 hover:bg-gray-50")
}
>
{plan.cta}
</a>
</div>
);
})}
</div>
</section>
);
}Two-tier pricing table
Free next to paid. Fewer options convert better when the plans are genuinely different rather than incrementally larger.
export default function TwoTierPricing() {
return (
<section className="mx-auto max-w-3xl px-4 py-12">
<div className="mb-10 text-center">
<h2 className="text-3xl font-bold text-gray-900">Two plans. No surprises.</h2>
<p className="mt-3 text-gray-600">Try it free, then pay only when you need more.</p>
</div>
<div className="grid gap-6 md:grid-cols-2">
<div className="relative rounded-xl border border-gray-200 bg-white p-6">
<h3 className="font-semibold text-gray-900">Starter</h3>
<p className="mt-1 text-sm text-gray-600">For side projects.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$0</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 project</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Community support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Start free</a>
</div>
<div className="relative order-first rounded-xl border-2 border-gray-900 bg-white p-6 lg:order-none">
<span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">Most popular</span>
<h3 className="font-semibold text-gray-900">Pro</h3>
<p className="mt-1 text-sm text-gray-600">For growing teams.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$24</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Unlimited projects</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Priority support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>100 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium bg-gray-900 text-white hover:bg-gray-700">Start trial</a>
</div>
</div>
</section>
);
}Pricing comparison table
A feature-by-feature table with checks and dashes. Use it when plans share most features and differ in limits. Scrolls sideways on narrow screens.
export default function PricingComparison() {
return (
<section className="mx-auto max-w-4xl px-4 py-12">
<h2 className="text-center text-3xl font-bold text-gray-900">Compare plans</h2>
<div className="mt-8 overflow-x-auto rounded-xl border border-gray-200">
<table className="w-full min-w-[32rem] text-left text-sm">
<thead className="bg-gray-50 text-gray-900">
<tr>
<th scope="col" className="px-4 py-3 font-semibold">Feature</th>
<th scope="col" className="px-4 py-3 text-center font-semibold">Starter</th>
<th scope="col" className="px-4 py-3 text-center font-semibold">Pro</th>
<th scope="col" className="px-4 py-3 text-center font-semibold">Enterprise</th>
</tr>
</thead>
<tbody className="divide-y divide-gray-200 text-gray-700">
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">Projects</th>
<td className="px-4 py-3 text-center">1</td>
<td className="px-4 py-3 text-center">Unlimited</td>
<td className="px-4 py-3 text-center">Unlimited</td>
</tr>
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">Storage</th>
<td className="px-4 py-3 text-center">1 GB</td>
<td className="px-4 py-3 text-center">100 GB</td>
<td className="px-4 py-3 text-center">Custom</td>
</tr>
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">Community support</th>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
</tr>
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">Priority support</th>
<td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
</tr>
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">SSO and audit logs</th>
<td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
<td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
</tr>
<tr>
<th scope="row" className="px-4 py-3 font-medium text-gray-900">Custom contracts</th>
<td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
<td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
<td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
</tr>
</tbody>
</table>
</div>
</section>
);
}Pricing table with elevated featured plan
The recommended plan is lifted with a shadow and extra height instead of a heavier border, so emphasis comes from depth.
export default function ElevatedPricing() {
return (
<section className="mx-auto max-w-6xl px-4 py-12">
<div className="mb-10 text-center">
<h2 className="text-3xl font-bold text-gray-900">Pricing that scales</h2>
<p className="mt-3 text-gray-600">The Pro plan covers most teams.</p>
</div>
<div className="grid gap-6 lg:grid-cols-3 lg:items-center">
<div className="relative rounded-xl border border-gray-200 bg-white p-6">
<h3 className="font-semibold text-gray-900">Starter</h3>
<p className="mt-1 text-sm text-gray-600">For side projects.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$0</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 project</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Community support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Start free</a>
</div>
<div className="relative order-first rounded-xl bg-white p-6 shadow-xl ring-1 ring-gray-900/10 lg:order-none lg:-my-4 lg:py-10">
<span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">Most popular</span>
<h3 className="font-semibold text-gray-900">Pro</h3>
<p className="mt-1 text-sm text-gray-600">For growing teams.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">$24</span><span className="text-sm text-gray-600">/month</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Unlimited projects</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Priority support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>100 GB storage</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium bg-gray-900 text-white hover:bg-gray-700">Start trial</a>
</div>
<div className="relative rounded-xl border border-gray-200 bg-white p-6">
<h3 className="font-semibold text-gray-900">Enterprise</h3>
<p className="mt-1 text-sm text-gray-600">For larger organizations.</p>
<p className="mt-4"><span className="text-4xl font-bold text-gray-900">Custom</span></p>
<ul className="mt-6 space-y-3 text-sm text-gray-700">
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>SSO and audit logs</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Dedicated support</span></li>
<li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Custom contracts</span></li>
</ul>
<a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Contact sales</a>
</div>
</div>
</section>
);
}What is a प्राइसिंग टेबल?
एक प्राइसिंग टेबल किसी प्रोडक्ट के प्लान को आमने-सामने रखती है ताकि कोई विज़िटर एक नज़र में उनकी तुलना कर सके। यह एक मार्केटिंग सेक्शन के रूप में छिपी हुई तुलना इंटरफ़ेस है: इसका विज़ुअल काम साफ दिखना है, और असली काम टियर्स के बीच के अंतर को इतनी तेज़ी से स्पष्ट करना है कि कोई व्यक्ति सोचने के लिए जाने के बजाय तुरंत एक को चुन ले।
संरचना लगभग सार्वभौमिक है क्योंकि यह काम करती है। प्रत्येक कॉलम में एक प्लान का नाम, यह किसके लिए है इसके बारे में एक छोटी लाइन, एक कीमत, क्या शामिल है इसकी सूची और एक एक्शन होता है। एक रिकमेंडेड टियर को आमतौर पर अलग से दिखाया जाता है, जो डिज़ाइन फ़्लोरिश जैसा लगता है लेकिन असल काम कर रहा होता है - बिना किसी मार्गदर्शन के तीन समान विकल्पों को देखते हुए, लोग आमतौर पर बीच वाले विकल्प पर या किसी पर भी डिफ़ॉल्ट रूप से भरोसा नहीं करते हैं, और एक स्पष्ट रिकमेंडेशन से उलझन दूर हो जाती है।
बिलिंग टॉगल एकमात्र वास्तविक रूप से इंटरैक्टिव हिस्सा है, और यह इसलिए मौजूद है क्योंकि वार्षिक प्राइसिंग पर आमतौर पर छूट मिलती है। वार्षिक बिलिंग करते समय डिस्काउंटेड मासिक-समतुल्य आंकड़ा दिखाना स्टैंडर्ड है, लेकिन लेबल में यह स्पष्ट करनावर्थ इट है कि किस नंबर पर और कब चार्ज किया जा रहा है, क्योंकि प्रदर्शित आंकड़े और किसी के खाते से वास्तव में निकलने वाली राशि के बीच का अंतर वह जगह है जहाँ प्राइसिंग पेज अपना भरोसा खो देते हैं।
ये सेक्शन सबसे अक्सर ब्रेकपॉइंट पर फेल होते हैं। फ़ीचर सूचियों के तीन कॉलम फोन पर तीन स्टैक किए गए ब्लॉक बन जाते हैं, और रिकमेंडेड प्लान - जो डेस्कटॉप पर देखने के लिए बीच में सावधानी से रखा गया है - अन्य दो के बीच में दबकर खत्म हो जाता है, उस फोल्ड के नीचे जिसे अधिकांश मोबाइल विज़िटर कभी स्क्रॉल नहीं करते हैं। प्लान्स को इस तरह व्यवस्थित करना कि रिकमेंडेड प्लान मोबाइल पर पहले दिखाई दे, एक वन-क्लास बदलाव है जिसे छोड़ना आसान है और चूकना महंगा है।
Anatomy
- सेक्शन हेडिंग
- कॉलम के ऊपर की हेडिंग और सपोर्टिंग लाइन। सपोर्टिंग लाइन को प्लान किसके लिए हैं, इस पर एक वाक्य तक सीमित रखें, सेल्स पैराग्राफ न बनाएं।
- बिलिंग टॉगल
- यह इंगित करने के लिए कि कौन सी अवधि सक्रिय है, aria-pressed वाले दो बटन। स्विच के बजाय बटन, क्योंकि चुनाव चालू और बंद के बजाय दो नामित विकल्पों के बीच होता है।
- प्लान कार्ड
- प्रति टियर एक कॉलम, जिसमें नाम, टैगलाइन, कीमत, फ़ीचर सूची और एक्शन होता है। सभी कार्डों में समान आंतरिक स्पेसिंग होती है ताकि कॉलम में कीमतें और बटन संरेखित (align) रहें।
- फ़ीचरर्ड बैडज
- रिकमेंडेड प्लान पर बिल्कुल स्थित (absolutely positioned) लेबल, कार्ड के ऊपरी किनारे से ऊपर की ओर ऑफ़सेट होता है ताकि यह समाहित होने के बजाय जुड़े हुए के रूप में पढ़े।
- फ़ीचर सूची
- प्रति प्लान एक ul। जहाँ तक हो सके टियर्स में आइटम की गिनती समान रखें, वरना कॉलम अलग-अलग ऊंचाइयों पर समाप्त होंगे और बटन संरेखित होना बंद हो जाएंगे।
- प्लान एक्शन
- प्रत्येक कार्ड के नीचे का बटन या लिंक। रिकमेंडेड प्लान को सॉलिड ट्रीटमेंट मिलता है और अन्य को आउटलाइन मिलती हैं, ताकि विज़ुअल वेट इच्छित पथ से मेल खाए।
How to Use
- 1
अपनी ज़रूरत का वर्शन कॉपी करें
काम करने वाले बिलिंग टॉगल के लिए React वर्शन लें, या केवल मासिक स्टैटिक टेबल के लिए HTML वर्शन लें।
- 2
प्लान्स अरे (array) को एडिट करें
नाम, टैगलाइन, कीमतें और फ़ीचर्स बदलें। फ़ीचरर्ड फ़्लैग नियंत्रित करता है कि किस कॉलम को बॉर्डर, बैज और सॉलिड बटन मिले - इसे ठीक एक प्लान पर सेट करें।
- 3
अपना वार्षिक डिस्काउंट सेट करें
वार्षिक फ़ील्ड वार्षिक रूप से बिल किए जाने पर मासिक-समतुल्य मूल्य है, न कि वार्षिक कुल। बिलिंग लेबल को स्पष्ट करें कि किस आंकड़े पर चार्ज किया जाता है।
- 4
मोबाइल ऑर्डर को ठीक करें
featured card में order-first lg:order-none जोड़ें ताकि recommended plan फोन्स पर सबसे ऊपर और डेस्कटॉप पर वापस बीच में दिखाई दे।
- 5
actions को wire up करें
query string या path में plan identifier के साथ प्रत्येक plan के link को अपने signup flow पर पॉइंट करें, ताकि selection दोबारा पूछने के बजाय आगे बढ़ जाए।
Features
working billing toggle
पेज रीलोड किए बिना monthly और annual prices स्विच होते हैं, प्रत्येक button पर aria-pressed के साथ ताकि active period केवल दिखाने के बजाय announce किया जाए।
Data-driven columns
पूरा section एक plans array से render होता है, इसलिए tier जोड़ना या हटाना markup change के बजाय एक data change है।
Featured plan treatment
एक अकेला boolean भारी border, badge, और solid button को संचालित करता है, जिससे प्रत्येक element पर अलग से apply करने के बजाय emphasis एक जैसा रहता है।
Aligned across columns
Shared internal spacing कीमतों, सूचियों और buttons को एक ही क्षैतिज रेखा (horizontal lines) पर रखती है, जिससे कोई टेबल सिर्फ साफ-सुथरी दिखने के बजाय आसानी से स्कैन करने योग्य बनती है।
Custom-price handling
एक null price को प्रति-महीने (per-month) suffix को हटाकर Custom के रूप में render किया जाता है, इसलिए enterprise tier को अपने अलग markup की आवश्यकता नहीं होती है।
Common Uses
SaaS pricing pages
एक subscription product के लिए standard तीन-tier लेआउट, जिसमें निचले छोर पर एक free या starter plan और सबसे ऊपर एक contact-sales tier होता है।
Service and agency packages
निश्चित-दायरे (fixed-scope) वाले पैकेज प्रस्तुत करना जहाँ अंतर उपयोग सीमा (usage limits) के बजाय deliverables हैं, जिसमें बीच वाला पैकेज इच्छित default होता है।
Membership and course tiers
किसी कम्युनिटी, कोर्स या न्यूज़लेटर के लिए access level सेट करना जहाँ annual billing पर महत्वपूर्ण छूट मिलती है।
Comparing a paid plan against free
एक दो-स्तंभ (two-column) संस्करण जो free tier को paid tier के बगल में रखता है, जो तर्क के बजाय विरोधाभास द्वारा upgrade का मामला बनाता है।
Accessibility
- Billing toggle में switch के रूप में स्टाइल किए गए checkbox के बजाय aria-pressed वाले buttons का उपयोग किया जाता है, क्योंकि चुनाव दो नामित अवधियों के बीच होता है न कि बाइनरी on या off के बीच।
- Plan names वास्तविक headings हैं, इसलिए screen reader user हर feature list को सुने बिना heading navigation के साथ plans के बीच जा सकता है।
- Feature lists ul elements हैं, इसलिए items को पढ़ने से पहले उनकी लंबाई announce की जाती है और listener यह तय कर सकता है कि आगे बढ़ना है या नहीं।
- Featured badge card के अंदर सादा पाठ है, इसलिए इसे सहायक तकनीक (assistive technology) तक कभी न पहुँचने वाले decorative element के रूप में नहीं बल्कि वहीं पढ़ा जाता है।
- टॉगल पर कीमत में बदलाव सामान्य document flow में होता है। यदि आपको बदलाव announce करने की आवश्यकता है, तो कीमत को polite पर सेट aria-live वाले container में लपेटें।
- प्रत्येक action link अपने पाठ में या aria-label में plan name ले जाता है, ताकि context से बाहर पढ़े गए links की सूची में तीन एक जैसे Start trial प्रविष्टियाँ (entries) न हों।
Customization
- Featured border, badge और button पर gray-900 मानों को बदलकर accent बदलें। उन तीनों को हमेशा एक साथ चलना चाहिए अन्यथा emphasis बिखर जाता है।
- Cards के नीचे एक ही table से प्रति-plan सूचियों को बदलकर comparison लेआउट पर स्विच करें, जो तब बेहतर काम करता है जब plans फीचर्स साझा करते हैं और केवल सीमाओं में भिन्न होते हैं।
- Annual toggle के बगल में savings note जोड़ें। इसे तथ्यात्मक रखें - एक प्रतिशत जो गोल-मटोल (rounded-up) marketing figure के बजाय वास्तविक अंतर से मेल खाता हो।
- यदि रूपरेखा आपके डिज़ाइन के लिए बहुत अधिक भारी है, तो भारी border के बजाय shadow-lg और lg:-mt-4 के साथ featured card को elevation दें।
- तीन से अधिक tiers के लिए, लंबे स्टैक के बजाय mobile पर क्षैतिज रूप से स्क्रॉल करने योग्य (horizontally scrollable) पंक्ति पर जाएं, क्योंकि चार स्टैक किए गए कार्ड आखिरी वाले को fold से काफी नीचे धकेल देते हैं।
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| plans * | Plan[] | - | रेंडर किए जाने वाले टियर्स। प्रत्येक में एक नाम, टैगलाइन, मासिक और वार्षिक कीमत, फ़ीचर सूची और एक फ़ीचरर्ड फ़्लैग होता है जो हाइलाइट किए गए ट्रीटमेंट को नियंत्रित करता है। |
| defaultAnnual | boolean | false | टॉगल किस बिलिंग अवधि से शुरू होता है। वार्षिक से शुरू करने पर कम हेडलाइन नंबर दिखाई देता है, जिसे कुछ टीमें पसंद करती हैं और अन्य इसे भ्रामक मानती हैं - सोच-समझकर चुनें। |
Why Use These प्राइसिंग टेबलs?
Billing toggle वास्तविक working state है, किसी एक का static screenshot नहीं। अधिकांश कॉपी-पेस्ट प्राइसिंग अनुभाग या तो इसे छोड़ देते हैं या इसे एक गैर-कार्यात्मक सजावट के रूप में छोड़ देते हैं जिसे पेज शिप होने से पहले wire up किया जाना चाहिए।
Columns एक data array से render होते हैं, इसलिए कीमत में बदलाव तीन समानांतर संपादनों के बजाय एक संपादन है - जो कि नगण्य-समान (near-identical) markup ब्लॉकों में होता है - और यही कारण है कि अपडेट के कुछ दौर के बाद मूल्य निर्धारण तालिकाएँ (pricing tables) असंगत हो जाती हैं।
मोबाइल ऑर्डरिंग की समस्या का दस्तावेजीकरण किया गया है न कि उसे आश्चर्य के रूप में छोड़ा गया है। यह प्राइसिंग सेक्शन में सबसे आम दोष है और इसका समाधान केवल एक क्लास है।
Tips
- order-first lg:order-none का उपयोग करके मोबाइल पर अनुशंसित प्लान को सबसे पहले रखें। इसकी बीच की स्थिति केवल चौड़ी स्क्रीन पर मदद करती है; स्टैक होने पर, यह केवल दूसरी ऐसी चीज़ है जिसे स्क्रॉल करके पार किया जाता है।
- जहां तक ईमानदारी से संभव हो, सभी प्लान्स में फीचर सूचियों की लंबाई एक समान रखें। असमान सूचियों के कारण बटन अलग-अलग ऊंचाइयों पर आ जाते हैं, जो खराब लगता है भले ही कोई यह न बता सके कि क्यों।
- हर टियर में क्या शामिल है, इसके बजाय प्रत्येक फीचर की शुरुआत इस बात से करें कि टियर के बीच क्या बदलता है। तीन कॉलम जो सभी SSL certificate से शुरू होते हैं, वे सबसे अधिक पढ़े जाने वाली लाइन को बर्बाद करते हैं।
- स्पष्ट रूप से बताएं कि क्या वार्षिक आंकड़ा मासिक समतुल्य (equivalent) है या वार्षिक कुल। यह प्राइसिंग पेज पर भ्रम का सबसे आम स्रोत है।
- चौथा टियर तब तक न जोड़ें जब तक कि प्लान वास्तव में अलग न हों। प्रत्येक अतिरिक्त कॉलम अन्य को सिकोड़ता है और एक निर्णय हटाने के बजाय एक और जोड़ता है।
- यदि किसी प्लान की उपयोग सीमा (usage limit) है, तो उसे फुटनोट में दिखाने के बजाय सूची में दिखाएं। साइनअप के बाद पता चलने वाली सीमाएं रिफंड अनुरोध का कारण बन सकती हैं।