Pricing Table

Displays multiple pricing tiers side-by-side for easy comparison.

Install

npx @vultra/cli add pricing-table

Usage

<script>
  import { PricingTable } from '@vultra/ui';

  const tiers = [
    {
      name: 'Free',
      price: '$0',
      period: '/month',
      features: ['1 project', '1 GB storage', 'Community support'],
    },
    {
      name: 'Pro',
      price: '$19',
      period: '/month',
      features: ['Unlimited projects', '100 GB storage', 'Priority support'],
      featured: true,
    },
    {
      name: 'Enterprise',
      price: '$99',
      period: '/month',
      features: ['Everything in Pro', 'Custom domain', 'SLA guarantee'],
    },
  ];
</script>

<PricingTable {tiers} />

Props

PropTypeDefaultDescription
tiersPricingTier[][]Array of pricing tier objects
columnsnumber3Number of visible columns
classstring-Additional CSS classes

Tier Properties

PropertyTypeDescription
namestringTier name
pricestringPrice display text
periodstringBilling period label
featuresstring[]List of included features
featuredbooleanHighlight this tier
ctastringCall-to-action button text

Notes

  • featured tier is visually emphasized (e.g. border, scale).
  • Responsive: stacks vertically on small screens.