{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-01",
  "title": "Features — Icon Grid",
  "author": "SAASTRO <https://saastro.io>",
  "description": "3-column feature grid with icons, titles, and descriptions in cards. Zero-JS Astro component.",
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/blocks/features-01.astro",
      "content": "---\n/**\n * features-01 — Grid de 3 columnas con icono, título y descripción en cards.\n * Bloque Astro puro: cero JS, cero dependencias.\n *\n * `icon` es OPCIONAL — sin él la tarjeta es solo título y descripción, que es\n * lo que necesita una rejilla de valores o de principios. Cuando se pasa, es una\n * CLAVE del set interno ('zap' | 'shield' | 'code' | 'sparkles' |\n * 'globe' | 'lock'), no un nodo: mantiene las props serializables (la regla del\n * ecosistema: los datos cruzan la frontera de island/adapter, los nodos no).\n */\ntype IconName = 'zap' | 'shield' | 'code' | 'sparkles' | 'globe' | 'lock';\n\ninterface Feature {\n  /** Opcional: sin icono, la tarjeta se queda con título y descripción. */\n  icon?: IconName;\n  title: string;\n  description: string;\n}\ninterface Props {\n  title?: string;\n  description?: string;\n  features: Feature[];\n  class?: string;\n}\nconst { title, description, features, class: className } = Astro.props;\n\n// SVGs inline (lucide, stroke) — sin dependencia de librería de iconos.\nconst ICONS: Record<IconName, string> = {\n  zap: '<path d=\"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\"/>',\n  shield:\n    '<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"/>',\n  code: '<polyline points=\"16 18 22 12 16 6\"/><polyline points=\"8 6 2 12 8 18\"/>',\n  sparkles:\n    '<path d=\"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\"/>',\n  globe:\n    '<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"/><path d=\"M2 12h20\"/>',\n  lock: '<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"/>',\n};\n---\n\n<section class:list={['w-full px-6 py-24 md:py-32', className]}>\n  <div class=\"mx-auto max-w-6xl\">\n    {(title || description) && (\n      <div class=\"mx-auto mb-16 max-w-2xl text-center\">\n        {title && <h2 class=\"text-3xl font-bold tracking-tight sm:text-4xl\">{title}</h2>}\n        {description && <p class=\"mt-4 text-lg text-muted-foreground\">{description}</p>}\n      </div>\n    )}\n    <div class=\"grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n      {features.map((feature) => (\n        <div class=\"flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm\">\n          <div class=\"flex flex-col gap-1.5 px-6\">\n            {feature.icon && (\n              <div class=\"mb-2 flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary\">\n                <svg\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                  width=\"20\"\n                  height=\"20\"\n                  viewBox=\"0 0 24 24\"\n                  fill=\"none\"\n                  stroke=\"currentColor\"\n                  stroke-width=\"2\"\n                  stroke-linecap=\"round\"\n                  stroke-linejoin=\"round\"\n                  set:html={ICONS[feature.icon]}\n                />\n              </div>\n            )}\n            <h3 class=\"leading-none font-semibold\">{feature.title}</h3>\n          </div>\n          <div class=\"px-6\">\n            <p class=\"text-sm text-muted-foreground\">{feature.description}</p>\n          </div>\n        </div>\n      ))}\n    </div>\n  </div>\n</section>\n",
      "type": "registry:component",
      "target": "@components/blocks/features-01.astro"
    }
  ],
  "meta": {
    "group": "Features",
    "iframeHeight": "820px"
  },
  "docs": "Astro component — zero JS, no React required. Default import: `import Features01 from '@/components/blocks/features-01.astro'`. Props: title?, description?, features [{icon: 'zap'|'shield'|'code'|'sparkles'|'globe'|'lock', title, description}], class?. Icons are built-in inline SVGs keyed by name — props stay serializable.",
  "categories": [
    "features",
    "landing"
  ],
  "type": "registry:block"
}