Veil UI
Components

Pricing Section

A three-plan pricing layout with an optional selection callback.

Installation

$ npx veil-ui@latest add pricing-section

Usage

import { PricingSection } from "@/components/ui/pricing-section";

<PricingSection
  plans={[
    { name: "Team", price: "$24", features: ["Unlimited projects"], highlighted: true },
  ]}
  onSelectPlan={(plan) => choosePlan(plan)}
/>;

Examples

Basic

Simple pricing

Start free, upgrade when your team grows.

Starter

For side projects and experiments.

$0/month

  • 3 projects
  • Community support
Team
Popular

For growing product teams.

$24/month

  • Unlimited projects
  • 10 seats
  • Priority support
Enterprise

For organizations at scale.

Custom

  • SSO and SCIM
  • Dedicated support
  • Audit logs

Selectable

Choose a plan

Click a plan to see the selection callback.

Starter

For side projects and experiments.

$0/month

  • 3 projects
  • Community support
Team
Popular

For growing product teams.

$24/month

  • Unlimited projects
  • 10 seats
  • Priority support
Enterprise

For organizations at scale.

Custom

  • SSO and SCIM
  • Dedicated support
  • Audit logs

No plan selected yet

API reference

The package exports pricing-section along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Pages keep a single h1 in the hero and use h2/h3 for section hierarchy.
  • Call-to-action elements are real links or buttons with discernible labels.
  • Decorative icons are aria-hidden and meaningful images require alt text.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add pricing-section --framework vue or switch the framework in components.json.

<template>
<div data-slot="pricing-section" class="grid gap-6 w-full max-w-5xl"><div class="mx-auto max-w-2xl text-center"><h2 class="text-2xl font-semibold tracking-tight">Simple pricing</h2><p class="mt-2 text-sm text-muted-foreground">Start free, upgrade when your team grows.</p></div><div class="grid items-start gap-4 md:grid-cols-3"><div data-slot="pricing-card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground shadow-xs max-w-none"><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]"><div class="flex items-center justify-between gap-2"><div data-slot="card-title" class="text-base font-medium leading-none">Starter</div></div><p class="text-sm text-muted-foreground">For side projects and experiments.</p><p class="flex items-baseline gap-1 pt-2"><span class="text-3xl font-semibold tracking-tight">$0</span><span class="text-sm text-muted-foreground">/month</span></p></div><div data-slot="card-content" class="px-5 grid gap-4"><ul class="grid gap-2 text-sm"><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>3 projects</span></li><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>Community support</span></li></ul><button data-slot="button" data-variant="outline" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2 w-full" type="button">Start free</button></div></div><div data-slot="pricing-card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground border-primary shadow-md ring-1 ring-primary max-w-none" data-highlighted="true"><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]"><div class="flex items-center justify-between gap-2"><div data-slot="card-title" class="text-base font-medium leading-none">Team</div><span class="rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary">Popular</span></div><p class="text-sm text-muted-foreground">For growing product teams.</p><p class="flex items-baseline gap-1 pt-2"><span class="text-3xl font-semibold tracking-tight">$24</span><span class="text-sm text-muted-foreground">/month</span></p></div><div data-slot="card-content" class="px-5 grid gap-4"><ul class="grid gap-2 text-sm"><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>Unlimited projects</span></li><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>10 seats</span></li><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>Priority support</span></li></ul><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 w-full" type="button">Start trial</button></div></div><div data-slot="pricing-card" class="flex flex-col gap-4 rounded-lg border bg-card py-5 text-card-foreground shadow-xs max-w-none"><div data-slot="card-header" class="grid auto-rows-min items-start gap-1 px-5 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]"><div class="flex items-center justify-between gap-2"><div data-slot="card-title" class="text-base font-medium leading-none">Enterprise</div></div><p class="text-sm text-muted-foreground">For organizations at scale.</p><p class="flex items-baseline gap-1 pt-2"><span class="text-3xl font-semibold tracking-tight">Custom</span><span class="text-sm text-muted-foreground"></span></p></div><div data-slot="card-content" class="px-5 grid gap-4"><ul class="grid gap-2 text-sm"><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>SSO and SCIM</span></li><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>Dedicated support</span></li><li class="flex items-start gap-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg><span>Audit logs</span></li></ul><button data-slot="button" data-variant="outline" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2 w-full" type="button">Contact sales</button></div></div></div></div>
</template>

On this page