BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/billui/plan-card

Plan Card

billui/plan-card
FreeComponent

A card for displaying pricing tiers and subscription plans.

Live preview

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

Install it

npx shadcn@latest add https://billui.com/r/plan-card.json

Source

src/registry/ui/plan-card.tsxbillui.com/r/plan-card.json
1import { cva, type VariantProps } from "class-variance-authority";
2import { Check, X } from "lucide-react";
3import * as React from "react";
4import { Badge } from "@/components/ui/badge";
5import { Button } from "@/components/ui/button";
6import { cn } from "@/lib/utils";
7
8const planCardVariants = cva(
9 "relative rounded-2xl border bg-card text-card-foreground transition-all duration-200",
10 {
11 variants: {
12 variant: {
13 default: "border-border",
14 highlighted:
15 "border-primary shadow-lg shadow-primary/10 ring-1 ring-primary",
16 compact: "border-border p-4",
17 },
18 size: {
19 default: "p-6",
20 lg: "p-8",
21 },
22 layout: {
23 vertical: "flex flex-col min-w-[280px]",
24 horizontal: "flex flex-row items-center gap-6 w-full",
25 },
26 },
27 defaultVariants: {
28 variant: "default",
29 size: "default",
30 layout: "vertical",
31 },
32 },
33);
34
35interface PlanCardProps
36 extends React.HTMLAttributes<HTMLDivElement>,
37 VariantProps<typeof planCardVariants> {}
38
39const PlanCard = React.forwardRef<HTMLDivElement, PlanCardProps>(
40 ({ className, variant, size, layout, ...props }, ref) => (
41 <div
42 ref={ref}
43 className={cn(planCardVariants({ variant, size, layout, className }))}
44 {...props}
45 />
46 ),
47);
48PlanCard.displayName = "PlanCard";
49
50const PlanCardHeader = React.forwardRef<
51 HTMLDivElement,
52 React.HTMLAttributes<HTMLDivElement>
53>(({ className, ...props }, ref) => (
54 <div ref={ref} className={cn("flex flex-col gap-2", className)} {...props} />
55));
56PlanCardHeader.displayName = "PlanCardHeader";
57
58interface PlanCardBadgeProps
59 extends React.ComponentPropsWithoutRef<typeof Badge> {}
60
61const PlanCardBadge = React.forwardRef<HTMLDivElement, PlanCardBadgeProps>(
62 ({ className, ...props }, ref) => (
63 <Badge ref={ref} className={cn("w-fit", className)} {...props} />
64 ),
65);
66PlanCardBadge.displayName = "PlanCardBadge";
67
68const PlanCardTitle = React.forwardRef<
69 HTMLHeadingElement,
70 React.HTMLAttributes<HTMLHeadingElement>
71>(({ className, ...props }, ref) => (
72 <h3
73 ref={ref}
74 className={cn("text-2xl font-bold tracking-tight", className)}
75 {...props}
76 />
77));
78PlanCardTitle.displayName = "PlanCardTitle";
79
80const PlanCardDescription = React.forwardRef<
81 HTMLParagraphElement,
82 React.HTMLAttributes<HTMLParagraphElement>
83>(({ className, ...props }, ref) => (
84 <p
85 ref={ref}
86 className={cn("text-sm text-muted-foreground", className)}
87 {...props}
88 />
89));
90// … truncated

What it pulls in

npm packages

  • class-variance-authority
  • lucide-react

Other registry items

  • badge
  • button
  • https://billui.com/r/utils.json

Files it writes

  • src/registry/ui/plan-card.tsx

Facts

Registry
billui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on billui billui.com commet-labs/billui on GitHub Raw registry item This item as JSON

More from billui

All 13 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Usage Cardanimated-usage-cardbilluiComponentsFree2 deps
Billing Addressbilling-addressbilluiComponentsFreeno deps
Card Iconscard-iconsbilluiComponentsFree1 dep
Card Inputcard-inputbilluiComponentsFreeno deps
Invoice Cardinvoice-cardbilluiComponentsFree2 deps
Payment Methodpayment-methodbilluiComponentsFree2 deps
Plan Groupplan-groupbilluiComponentsFree1 dep
Pricing Tablepricing-tablebilluiComponentsFree2 deps
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