BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uifoundry/pricing-1

Pricing 1

uifoundry/pricing-1
FreeBlock

Pricing table with two-column card layout, featured plan badge, and pricing options

Live preview

live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uifoundry.dev/r/pricing-1.json

Source

registry/payload/blocks/pricing/pricing-1/index.tsxuifoundry.dev/r/pricing-1.json
1import type { ComponentPropsWithRef } from "react";
2
3import { Check } from "lucide-react";
4import Link from "next/link";
5
6import type { Pricing_1_Block } from "~/payload-types";
7
8import { cn } from "@/registry/default/utils";
9import { Button } from "@/registry/ui/button";
10import {
11 Card,
12 CardContent,
13 CardDescription,
14 CardHeader,
15 CardTitle,
16} from "@/registry/ui/card";
17
18export * from "./config";
19
20export default function Pricing(props: NonNullable<Pricing_1_Block>) {
21 return (
22 <section className="py-16 md:py-32">
23 <div className="mx-auto max-w-6xl px-6">
24 <div className="mx-auto max-w-2xl space-y-6 text-center">
25 <h1 className="text-center text-4xl font-semibold lg:text-5xl">
26 {props?.header ?? ""}
27 </h1>
28 <p>{props?.subheader ?? ""}</p>
29 </div>
30
31 <div className="mt-8 justify-center gap-6 md:mt-20 md:flex">
32 {(props?.tiers ?? []).map((tier, index) => (
33 <PricingTier
34 focusedTier={{
35 index: props?.config?.focusIndex ?? -1,
36 label: props?.config?.focusLabel ?? "Popular",
37 }}
38 index={index}
39 key={`Pricing_1_Block-${index}`}
40 tier={tier}
41 />
42 ))}
43 </div>
44 </div>
45 </section>
46 );
47}
48
49function PricingTier({
50 index,
51 focusedTier = {
52 index: -1,
53 label: "Popular",
54 },
55 tier,
56 ...divProps
57}: ComponentPropsWithRef<"div"> & {
58 focusedTier?: {
59 index: number;
60 label: string;
61 };
62 index: number;
63 tier: NonNullable<Pricing_1_Block["tiers"]>[number];
64}) {
65 if (!tier) {return null;}
66
67 const annualPricing = tier.pricing.annual;
68 const monthlyPricing = tier.pricing.monthly;
69 const isFocused = focusedTier.index === index;
70
71 return (
72 <Card className="relative my-8 basis-1/2 md:my-0" {...divProps}>
73 <span
74 className={cn(
75 "absolute inset-x-0 -top-3 mx-auto flex h-6 w-fit items-center rounded-full bg-linear-to-br/increasing from-purple-400 to-amber-300 px-3 py-1 text-xs font-medium text-amber-950 ring-1 ring-white/20 ring-offset-1 ring-offset-gray-950/5 ring-inset",
76 !isFocused && "hidden",
77 )}
78 >
79 {focusedTier.label}
80 </span>
81 <CardHeader>
82 <CardTitle className="font-medium">{tier.label}</CardTitle>
83
84 <span className="my-3 block text-2xl font-semibold">
85 ${tier.pricing.value}
86 {annualPricing ? " / yr" : monthlyPricing ? " / mo" : ""}
87 </span>
88
89 {tier.description && (
90 <CardDescription className="text-sm">
91 {tier.description}
92 </CardDescription>
93 )}
94 <Button
95 asChild
96 className="mt-4 w-full"
97// … truncated

What it pulls in

npm packages

  • react
  • next
  • payload
  • lucide-react

Other registry items

  • button
  • card
  • @uifoundry/header-field
  • @uifoundry/subheader-field
  • @uifoundry/description-field
  • @uifoundry/style-utils
  • @uifoundry/block-constants

Files it writes

  • registry/payload/blocks/pricing/pricing-1/index.tsx
  • registry/payload/blocks/pricing/pricing-1/config.ts

Facts

Registry
uifoundry
Type
registry:block
Access
Free
Files written
2
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on uifoundry uifoundry.dev UIFoundry/uifoundry on GitHub Raw registry item This item as JSON

More from uifoundry

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Color Fieldcolor-fielduifoundryBlocksFree4 deps · 2 files
Coming Soon 1coming-soon-1uifoundryBlocksFree3 deps · 2 files
CTA 1cta-1uifoundryBlocksFree3 deps · 2 files
CTA 2cta-2uifoundryBlocksFree3 deps · 2 files
CTA 3cta-3uifoundryBlocksFree3 deps · 2 files
Custom Headercustom-headeruifoundryBlocksFree4 deps · 3 files
Features 1features-1uifoundryBlocksFree3 deps · 2 files
Features 2features-2uifoundryBlocksFree4 deps · 2 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex