{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-block",
  "type": "registry:block",
  "title": "Features Block",
  "description": "A Features Block component for displaying features.",
  "files": [
    {
      "path": "src/registry/blocks/features-block.tsx",
      "type": "registry:block",
      "content": "import { useId, type ComponentProps } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport type FeaturesBlockFeature = {\n  title: string;\n  description: string;\n  /** Small mono detail under the description, e.g. a limit or plan. */\n  meta?: string;\n};\n\nexport type FeaturesBlockProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  /** Mono metadata shown in the label row above the grid. */\n  labels?: string[];\n  features?: FeaturesBlockFeature[];\n  /** Index of the cell drawn in the accent color. Pass -1 for none. */\n  highlightIndex?: number;\n} & ComponentProps<\"section\">;\n\nconst DEFAULT_FEATURES: FeaturesBlockFeature[] = [\n  {\n    title: \"Branching databases\",\n    description:\n      \"Fork production into an isolated copy in about two seconds. Schema and data, copy-on-write, so a 400 GB branch costs what it changes.\",\n    meta: \"Up to 50 branches per project\",\n  },\n  {\n    title: \"Point-in-time restore\",\n    description:\n      \"Pick any second from the last 30 days and restore to a new branch. Your current database keeps serving traffic while you look.\",\n    meta: \"30-day window on Pro\",\n  },\n  {\n    title: \"Read replicas in four regions\",\n    description:\n      \"Frankfurt, Virginia, Singapore and São Paulo. Replication lag sits under 80 ms at the 95th percentile.\",\n    meta: \"p95 lag, Aug 2026\",\n  },\n  {\n    title: \"Query insights\",\n    description:\n      \"The ten slowest statements of the day, with plans, call counts and the deploy that introduced them.\",\n  },\n  {\n    title: \"Connection pooling\",\n    description:\n      \"A built-in pooler holds 10,000 client connections against 120 on the server. Serverless functions stop exhausting your limit.\",\n    meta: \"Transaction mode\",\n  },\n  {\n    title: \"Plain Postgres 17\",\n    description:\n      \"No forked engine, no proprietary SQL. pg_dump works, extensions work, and leaving takes one command.\",\n    meta: \"62 extensions enabled\",\n  },\n];\n\nconst DEFAULTS = {\n  eyebrow: \"(Features)\",\n  title: \"Postgres, with the parts you used to script yourself.\",\n  description:\n    \"Ferro runs standard Postgres and handles branching, backups, replicas and pooling around it. Six things you get on day one.\",\n  labels: [\"06 capabilities\", \"Ferro 3.2\", \"Updated 18 Sep 2026\"],\n};\n\nexport default function FeaturesBlock({\n  eyebrow = DEFAULTS.eyebrow,\n  title = DEFAULTS.title,\n  description = DEFAULTS.description,\n  labels = DEFAULTS.labels,\n  features = DEFAULT_FEATURES,\n  highlightIndex = 0,\n  className,\n  ...props\n}: FeaturesBlockProps) {\n  const headingId = useId();\n\n  return (\n    <section\n      data-slot=\"features-block\"\n      aria-labelledby={headingId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 md:py-28\">\n        <div className=\"grid gap-6 md:grid-cols-12 md:gap-10\">\n          <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground md:col-span-4\">\n            {eyebrow}\n          </p>\n          <div className=\"md:col-span-8\">\n            <h2\n              id={headingId}\n              className=\"text-3xl font-semibold tracking-[-0.03em] text-balance sm:text-4xl md:text-5xl\"\n            >\n              {title}\n            </h2>\n            <p className=\"mt-5 max-w-xl text-base leading-relaxed text-muted-foreground\">\n              {description}\n            </p>\n          </div>\n        </div>\n\n        {labels.length > 0 && (\n          <div className=\"mt-16 flex flex-wrap items-center justify-between gap-x-6 gap-y-2 border-t py-3 font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n            {labels.map((label) => (\n              <span key={label}>{label}</span>\n            ))}\n          </div>\n        )}\n\n        <ul className=\"grid border-t border-l sm:grid-cols-2 lg:grid-cols-3\">\n          {features.map((feature, i) => {\n            const highlighted = i === highlightIndex;\n            return (\n              <li\n                key={feature.title}\n                className={cn(\n                  \"flex min-h-64 flex-col border-r border-b p-6 md:p-8\",\n                  highlighted && \"bg-primary text-primary-foreground\"\n                )}\n              >\n                <span\n                  className={cn(\n                    \"font-mono text-xs tabular-nums\",\n                    highlighted\n                      ? \"text-primary-foreground/70\"\n                      : \"text-muted-foreground\"\n                  )}\n                >\n                  {String(i + 1).padStart(2, \"0\")}\n                </span>\n                <h3 className=\"mt-10 text-lg font-medium tracking-tight\">\n                  {feature.title}\n                </h3>\n                <p\n                  className={cn(\n                    \"mt-2 text-sm leading-relaxed\",\n                    highlighted\n                      ? \"text-primary-foreground/80\"\n                      : \"text-muted-foreground\"\n                  )}\n                >\n                  {feature.description}\n                </p>\n                {feature.meta && (\n                  <p\n                    className={cn(\n                      \"mt-auto pt-6 font-mono text-[11px] uppercase tracking-wider\",\n                      highlighted\n                        ? \"text-primary-foreground/70\"\n                        : \"text-muted-foreground\"\n                    )}\n                  >\n                    {feature.meta}\n                  </p>\n                )}\n              </li>\n            );\n          })}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}
