{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-02",
  "title": "Plan Comparison Table",
  "author": "VenusUI",
  "description": "Two plans compared feature by feature in an accessible table.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/default/blocks/pricing-02/components/pricing-02.tsx",
      "content": "import { Check, Minus } from \"lucide-react\"\n\nimport { Button } from \"@/components/ui/button\"\n\nconst plans = [\n  { id: \"starter\", name: \"Starter\", price: \"$0\", note: \"Free forever\" },\n  { id: \"pro\", name: \"Pro\", price: \"$29\", note: \"per month\" },\n] as const\n\n// true/false renders a check or dash; a string is shown as text.\nconst features: { name: string; starter: boolean | string; pro: boolean | string }[] = [\n  { name: \"Projects\", starter: \"3\", pro: \"Unlimited\" },\n  { name: \"Team members\", starter: \"1\", pro: \"Up to 20\" },\n  { name: \"Custom domains\", starter: false, pro: true },\n  { name: \"Analytics\", starter: \"7 days\", pro: \"1 year\" },\n  { name: \"Password protection\", starter: false, pro: true },\n  { name: \"Priority support\", starter: false, pro: true },\n]\n\nfunction Cell({ value }: { value: boolean | string }) {\n  if (typeof value === \"string\") return <span>{value}</span>\n  return value ? (\n    <>\n      <Check aria-hidden=\"true\" className=\"mx-auto size-4\" />\n      <span className=\"sr-only\">Included</span>\n    </>\n  ) : (\n    <>\n      <Minus aria-hidden=\"true\" className=\"mx-auto size-4 text-muted-foreground\" />\n      <span className=\"sr-only\">Not included</span>\n    </>\n  )\n}\n\n/** Two plans compared feature by feature in an accessible table. Scrolls sideways on small screens. */\nexport function Pricing02() {\n  return (\n    <section className=\"bg-background py-20 sm:py-24\">\n      <div className=\"mx-auto max-w-4xl px-4 sm:px-6\">\n        <h2 className=\"text-center text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">Compare plans</h2>\n        {/* `relative` keeps the visually hidden (absolutely positioned) cell text\n            inside this scroll container, so it can't widen the page on phones. */}\n        <div className=\"relative mt-12 overflow-x-auto rounded-xl border\">\n          <table className=\"w-full min-w-[32rem] text-sm\">\n            <caption className=\"sr-only\">Features included in each plan</caption>\n            <thead>\n              <tr className=\"border-b\">\n                <th scope=\"col\" className=\"p-4 text-left font-medium text-muted-foreground\">\n                  Feature\n                </th>\n                {plans.map((plan) => (\n                  <th key={plan.id} scope=\"col\" className=\"p-4 text-center\">\n                    <span className=\"block text-base font-semibold\">{plan.name}</span>\n                    <span className=\"block text-2xl font-semibold tracking-tight\">{plan.price}</span>\n                    <span className=\"block text-xs font-normal text-muted-foreground\">{plan.note}</span>\n                  </th>\n                ))}\n              </tr>\n            </thead>\n            <tbody className=\"divide-y\">\n              {features.map((feature) => (\n                <tr key={feature.name}>\n                  <th scope=\"row\" className=\"p-4 text-left font-normal\">\n                    {feature.name}\n                  </th>\n                  <td className=\"p-4 text-center\">\n                    <Cell value={feature.starter} />\n                  </td>\n                  <td className=\"p-4 text-center\">\n                    <Cell value={feature.pro} />\n                  </td>\n                </tr>\n              ))}\n            </tbody>\n            <tfoot>\n              <tr className=\"border-t\">\n                <td className=\"p-4\" />\n                <td className=\"p-4 text-center\">\n                  <Button variant=\"outline\" className=\"w-full\">\n                    Start free\n                  </Button>\n                </td>\n                <td className=\"p-4 text-center\">\n                  <Button className=\"w-full\">Upgrade to Pro</Button>\n                </td>\n              </tr>\n            </tfoot>\n          </table>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "pricing"
  ],
  "type": "registry:block"
}