{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "content-list",
  "title": "Content List",
  "description": "Payload content block: a serif heading beside a labeled-term list.",
  "registryDependencies": [
    "badge"
  ],
  "files": [
    {
      "path": "payload-components/source/blocks/ContentList/config.ts",
      "content": "import type { Block } from 'payload'\n\nexport const ContentList: Block = {\n  slug: 'contentList',\n  // Existing apps must migrate stored data before adopting this identifier:\n  // https://www.payload-components.xyz/docs/registry#installed-source-and-migrations\n  dbName: 'pc_con_lis',\n  interfaceName: 'ContentListBlock',\n  fields: [\n    {\n      name: 'eyebrow',\n      type: 'text',\n    },\n    {\n      name: 'title',\n      type: 'text',\n      required: true,\n    },\n    {\n      name: 'items',\n      type: 'array',\n      required: true,\n      minRows: 2,\n      maxRows: 6,\n      admin: {\n        initCollapsed: true,\n      },\n      fields: [\n        {\n          name: 'term',\n          type: 'text',\n          required: true,\n        },\n        {\n          name: 'description',\n          type: 'textarea',\n          required: true,\n        },\n      ],\n    },\n  ],\n  labels: {\n    plural: 'Content List Blocks',\n    singular: 'Content List',\n  },\n}\n",
      "type": "registry:file",
      "target": "~/src/blocks/ContentList/config.ts"
    },
    {
      "path": "payload-components/source/blocks/ContentList/Component.tsx",
      "content": "import React from 'react'\n\nimport type { ContentListBlock as ContentListBlockData } from '@/payload-types'\n\nimport { Badge } from '@/components/ui/badge'\nimport { cn } from '@/utilities/ui'\n\ntype Props = ContentListBlockData & {\n  id?: string\n  className?: string\n  disableInnerContainer?: boolean\n}\n\nexport const ContentListBlock: React.FC<Props> = ({\n  className,\n  disableInnerContainer,\n  eyebrow,\n  id,\n  items,\n  title,\n}) => {\n  return (\n    <section className={cn('container', className)} id={id ? `block-${id}` : undefined}>\n      <div className=\"overflow-hidden rounded-frame border border-border/70 bg-card/35 px-6 py-10 sm:px-8 lg:px-12 lg:py-14\">\n        <div\n          className={cn('grid gap-8 lg:grid-cols-2 lg:gap-16', {\n            'mx-auto max-w-3xl': !disableInnerContainer,\n          })}\n        >\n          <div className=\"flex flex-col gap-4\">\n            {eyebrow ? (\n              <Badge variant=\"outline\" className=\"w-fit rounded-full px-3 py-1 uppercase tracking-eyebrow\">\n                {eyebrow}\n              </Badge>\n            ) : null}\n\n            <h2 className=\"font-serif text-4xl font-medium text-balance\">{title}</h2>\n          </div>\n\n          {items && items.length > 0 ? (\n            <div className=\"flex flex-col gap-6\">\n              {items.map((item, index) => (\n                <p className=\"text-muted-foreground\" key={item.id ?? `${item.term}-${index}`}>\n                  <span className=\"font-medium text-foreground\">{item.term}</span> {item.description}\n                </p>\n              ))}\n            </div>\n          ) : null}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:file",
      "target": "~/src/blocks/ContentList/Component.tsx"
    }
  ],
  "meta": {
    "payloadComponent": {
      "installCommand": "payload-components add content-list",
      "postInstall": [
        "generate:types",
        "generate:importmap"
      ],
      "requiresPayloadComponentWrapper": true,
      "supportedTargets": [
        "payload-website-starter",
        "payload-blocks-app"
      ]
    }
  },
  "docs": "Payload Components installs this as a Payload CMS block for the Payload website starter shape.\n\nRecommended install:\n\n```bash\npnpm payload-components add content-list\n```\n\nDirect shadcn install URL:\n\n```bash\npnpm dlx shadcn@latest add https://www.payload-components.xyz/r/content-list.json\n```\n\nDirect shadcn installs only copy the block source files and shadcn UI dependencies. Use `payload-components add content-list` when you also want Payload layout registration, `RenderBlocks` wiring, `generate:types`, and `generate:importmap` handled for you.",
  "type": "registry:block"
}