# Pricing 1

> Side-by-side monthly and yearly pricing cards with discount badges.

A shadcn/ui block from the [@efferd](https://efferd.com/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/efferd/pricing-1).

- Page, with a live preview: https://shadcn.exchange/r/efferd/pricing-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/efferd/pricing-1-light-48e5b246e951feea.png
- Registry item: https://efferd.com/r/pricing-1.json
- Categories: pricing
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://efferd.com/r/pricing-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `button`, `badge`, `@efferd/decor-icon`

## Files

### `registry/blocks/pricing/1/pricing-section.tsx`

```tsx
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { DecorIcon } from "@/components/decor-icon";

export function PricingSection() {
	return (
		<section className="w-full space-y-5">
			<div className="mx-auto max-w-lg">
				<div className="flex justify-center">
					<div className="rounded-md border px-4 py-1 text-sm">Pricing</div>
				</div>
				<h2 className="font-heading mt-4 text-center font-bold text-2xl tracking-tight md:text-3xl">
					Pricing Based on Your Success
				</h2>
				<p className="mt-2 text-center text-muted-foreground text-sm md:text-base">
					We offer a single price for all our services. We believe that pricing
					is a critical component of any successful business.
				</p>
			</div>

			<div className="mx-auto w-full max-w-2xl space-y-2">
				<div className="relative grid border bg-background p-4 shadow-xs md:grid-cols-2">
					<DecorIcon className="size-3" position="top-left" />
					<DecorIcon className="size-3" position="top-right" />
					<DecorIcon className="size-3" position="bottom-left" />
					<DecorIcon className="size-3" position="bottom-right" />

					<div className="w-full px-4 pt-5 pb-4">
						<div className="space-y-1">
							<div className="flex items-center justify-between">
								<h3 className="font-heading font-semibold leading-none">Monthly</h3>
								<div className="flex items-center gap-x-1">
									<span className="text-muted-foreground text-sm line-through">
										$8.99
									</span>
									<Badge variant="secondary">11% off</Badge>
								</div>
							</div>
							<p className="text-muted-foreground text-sm">
								Best value for growing businesses!
							</p>
						</div>
						<div className="mt-10 space-y-4">
							<div className="flex items-end gap-0.5 text-muted-foreground text-xl">
								<span>$</span>
								<span className="-mb-0.5 font-extrabold text-4xl text-foreground tracking-tighter md:text-4xl">
									7.99
								</span>
								<span>/month</span>
							</div>
							<Button asChild className="w-full" variant="outline">
								<a href="#">Start Your Journey</a>
							</Button>
						</div>
					</div>
					<div className="relative w-full rounded-md border bg-card p-4 shadow dark:bg-card/80">
						<div className="space-y-1">
							<div className="flex items-center justify-between">
								<h3 className="font-heading font-semibold leading-none">Yearly</h3>
								<div className="flex items-center gap-x-1">
									<span className="text-muted-foreground text-sm line-through">
										$8.99
									</span>
									<Badge>22% off</Badge>
								</div>
							</div>
							<p className="text-muted-foreground text-sm">
								Unlock savings with an annual commitment!
							</p>
						</div>
						<div className="mt-10 space-y-4">
							<div className="flex items-end text-muted-foreground text-xl">
								<span>$</span>
								<span className="-mb-0.5 font-extrabold text-4xl text-foreground tracking-tighter md:text-4xl">
									6.99
								</span>
								<span>/month</span>
							</div>
							<Button asChild className="w-full">
								<a href="#">Get Started Now</a>
							</Button>
						</div>
					</div>
				</div>

				<div className="flex items-center justify-center gap-x-2 text-muted-foreground text-sm">
					<IconPlaceholder
						className="size-4"
						hugeicons="SecurityCheckIcon"
						lucide="ShieldCheckIcon"
						phosphor="ShieldCheckIcon"
						remixicon="RiShieldCheckLine"
						tabler="IconShieldCheck"
					/>
					<span>Access to all features with no hidden fees</span>
				</div>
			</div>
		</section>
	);
}
```
