{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"bento-grid","type":"registry:block","title":"Bento grid","description":"An asymmetric five-tile feature grid where every tile runs its own small live illustration: packets on a sync graph, a typing search, webhook retries, an access stack and a latency waveform.","dependencies":["motion","lucide-react"],"registryDependencies":["utils"],"files":[{"path":"registry/prequel/bento-grid/bento-grid.tsx","type":"registry:component","content":"\"use client\";\n\nimport {\n  useEffect,\n  useId,\n  useRef,\n  useState,\n  type ReactNode,\n} from \"react\";\nimport {\n  motion,\n  useInView,\n  useReducedMotion,\n} from \"motion/react\";\nimport { Bell, Check, KeyRound, Search, Webhook } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nconst EASE: [number, number, number, number] = [0.22, 1, 0.36, 1];\n\n/* A thin packet travels along each link; the centre glint turns slowly. */\nconst BENTO_CSS = `\n@keyframes prequel-bento-flow {\n  from { stroke-dashoffset: 100; }\n  to { stroke-dashoffset: 0; }\n}\n.prequel-bento-flow {\n  stroke-dasharray: 2 98;\n  animation: prequel-bento-flow 5.5s linear infinite;\n}\n@media (prefers-reduced-motion: reduce) {\n  .prequel-bento-flow {\n    animation: none;\n    opacity: 0;\n  }\n}\n`;\n\n/* ------------------------------------------------------------------ */\n/* types                                                               */\n/* ------------------------------------------------------------------ */\n\nexport type BentoGridRealtime = {\n  label: string;\n  headline: string;\n  latency: string;\n  regions: string;\n};\n\nexport type BentoGridSearchResult = {\n  title: string;\n  meta: string;\n};\n\nexport type BentoGridSearch = {\n  label: string;\n  query: string;\n  results: BentoGridSearchResult[];\n  hint?: string;\n};\n\nexport type BentoGridWebhooks = {\n  label: string;\n  headline: string;\n  states: { label: string; tone: \"ok\" | \"retry\" | \"muted\" }[];\n};\n\nexport type BentoGridAccess = {\n  label: string;\n  headline: string;\n  members: { initials: string; name: string }[];\n  role: string;\n  note: string;\n};\n\nexport type BentoGridAlerts = {\n  label: string;\n  headline: string;\n  value: string;\n  note: string;\n  owner: string;\n};\n\nexport type BentoGridProps = {\n  className?: string;\n  /** Section heading shown above the grid. */\n  title?: string;\n  /** One short paragraph under the heading. */\n  description?: string;\n  realtime?: BentoGridRealtime;\n  search?: BentoGridSearch;\n  webhooks?: BentoGridWebhooks;\n  access?: BentoGridAccess;\n  alerts?: BentoGridAlerts;\n};\n\n/* ------------------------------------------------------------------ */\n/* defaults                                                            */\n/* ------------------------------------------------------------------ */\n\nconst DEFAULT_REALTIME: BentoGridRealtime = {\n  label: \"Realtime sync\",\n  headline: \"Changes reach every open tab in 38 ms.\",\n  latency: \"38 ms\",\n  regions: \"6 regions\",\n};\n\nconst DEFAULT_SEARCH: BentoGridSearch = {\n  label: \"Search\",\n  query: \"invoice\",\n  hint: \"12 ms median\",\n  results: [\n    { title: \"Invoice 2041\", meta: \"Paid · 2 min ago\" },\n    { title: \"Invoice settings\", meta: \"Billing · updated 14 Mar\" },\n    { title: \"Invoices API\", meta: \"Docs · v2\" },\n  ],\n};\n\nconst DEFAULT_WEBHOOKS: BentoGridWebhooks = {\n  label: \"Webhooks\",\n  headline: \"Retries for 24 hours, then a dead-letter queue.\",\n  states: [\n    { label: \"Delivered\", tone: \"ok\" },\n    { label: \"Retried 3×\", tone: \"retry\" },\n    { label: \"24 h window\", tone: \"muted\" },\n  ],\n};\n\nconst DEFAULT_ACCESS: BentoGridAccess = {\n  label: \"Access\",\n  headline: \"Roles, SCIM and an audit trail.\",\n  members: [\n    { initials: \"AM\", name: \"Ama Mensah\" },\n    { initials: \"LF\", name: \"Lucas Ferreira\" },\n    { initials: \"MT\", name: \"Mei Tanaka\" },\n  ],\n  role: \"Admin\",\n  note: \"SCIM synced 4 min ago\",\n};\n\nconst DEFAULT_ALERTS: BentoGridAlerts = {\n  label: \"Alerting\",\n  headline: \"Route the signal, mute the noise.\",\n  value: \"2 open\",\n  note: \"p95 breach · 2 min\",\n  owner: \"Acknowledged by Ama M.\",\n};\n\n/* ------------------------------------------------------------------ */\n/* helpers                                                             */\n/* ------------------------------------------------------------------ */\n\nfunction useTypewriter(\n  text: string,\n  opts: { start: boolean; reduce: boolean; speed: number }\n) {\n  const [count, setCount] = useState(0);\n\n  useEffect(() => {\n    if (!opts.start) return;\n    if (opts.reduce) {\n      setCount(text.length);\n      return;\n    }\n\n    setCount(0);\n    let index = 0;\n    let timer: ReturnType<typeof setTimeout> | undefined;\n\n    const tick = () => {\n      index += 1;\n      setCount(index);\n      if (index < text.length) timer = setTimeout(tick, opts.speed);\n    };\n\n    timer = setTimeout(tick, 320);\n\n    return () => {\n      if (timer) clearTimeout(timer);\n    };\n  }, [text, opts.start, opts.reduce, opts.speed]);\n\n  return text.slice(0, count);\n}\n\nfunction highlight(text: string, query: string) {\n  const index = text.toLowerCase().indexOf(query.toLowerCase());\n  if (index < 0) return text;\n\n  return (\n    <>\n      {text.slice(0, index)}\n      <mark className=\"rounded-[2px] bg-foreground/10 px-0.5 text-foreground\">\n        {text.slice(index, index + query.length)}\n      </mark>\n      {text.slice(index + query.length)}\n    </>\n  );\n}\n\ntype TileProps = {\n  children: ReactNode;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n  className?: string;\n};\n\nfunction Tile({ children, index, show, reduce, className }: TileProps) {\n  return (\n    <motion.div\n      initial={reduce ? false : { opacity: 0, y: 14 }}\n      animate={{\n        opacity: reduce || show ? 1 : 0,\n        y: reduce || show ? 0 : 14,\n        transition: {\n          duration: reduce ? 0 : 0.55,\n          delay: reduce ? 0 : index * 0.07,\n          ease: EASE,\n        },\n      }}\n      className={cn(\n        \"group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border bg-muted/20 p-4 transition-colors duration-300 hover:border-muted-foreground/30 sm:p-5\",\n        className\n      )}\n    >\n      {children}\n    </motion.div>\n  );\n}\n\n/* ------------------------------------------------------------------ */\n/* tiles                                                               */\n/* ------------------------------------------------------------------ */\n\nconst HUB = { x: 180, y: 78 };\nconst NODES = [\n  { x: 50, y: 32 },\n  { x: 72, y: 124 },\n  { x: 300, y: 28 },\n  { x: 310, y: 120 },\n  { x: 180, y: 24 },\n];\nconst LINKS = [\n  \"M180 78 C140 62 92 46 50 32\",\n  \"M180 78 C142 98 108 116 72 124\",\n  \"M180 78 C230 58 262 42 300 28\",\n  \"M180 78 C236 94 274 110 310 120\",\n  \"M180 78 C180 60 180 40 180 24\",\n];\n\ntype RealtimeTileProps = {\n  data: BentoGridRealtime;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n};\n\nfunction RealtimeTile({ data, index, show, reduce }: RealtimeTileProps) {\n  return (\n    <Tile index={index} show={show} reduce={reduce} className=\"lg:col-span-7 lg:row-span-2\">\n      <p className=\"text-[12px] font-medium text-muted-foreground\">{data.label}</p>\n      <h3 className=\"mt-1 max-w-[34ch] text-[15px] font-medium leading-snug text-card-foreground\">\n        {data.headline}\n      </h3>\n\n      <div className=\"mt-4 min-h-0 flex-1\">\n        <svg\n          viewBox=\"0 0 360 156\"\n          className=\"block h-auto w-full\"\n          role=\"img\"\n          aria-label=\"A central sync node connected to five edge nodes, with a packet travelling along each link.\"\n        >\n          {LINKS.map((d, linkIndex) => (\n            <g key={d}>\n              <motion.path\n                d={d}\n                fill=\"none\"\n                stroke=\"var(--border)\"\n                strokeWidth={1.25}\n                strokeLinecap=\"round\"\n                initial={{ pathLength: reduce ? 1 : 0 }}\n                animate={{ pathLength: reduce ? 1 : show ? 1 : 0 }}\n                transition={{\n                  duration: reduce ? 0 : 0.9,\n                  delay: reduce ? 0 : linkIndex * 0.07,\n                  ease: EASE,\n                }}\n              />\n              {!reduce ? (\n                <motion.path\n                  d={d}\n                  pathLength={100}\n                  fill=\"none\"\n                  stroke=\"var(--foreground)\"\n                  strokeWidth={1.5}\n                  strokeLinecap=\"round\"\n                  className=\"prequel-bento-flow\"\n                  initial={{ opacity: 0 }}\n                  animate={{ opacity: show ? 0.45 : 0 }}\n                  transition={{\n                    duration: 0.5,\n                    delay: 0.4 + linkIndex * 0.08,\n                  }}\n                />\n              ) : null}\n            </g>\n          ))}\n\n          {NODES.map((node, nodeIndex) => (\n            <motion.circle\n              key={`${node.x}-${node.y}`}\n              cx={node.x}\n              cy={node.y}\n              r={3.2}\n              fill=\"var(--card)\"\n              stroke=\"var(--muted-foreground)\"\n              strokeWidth={1.4}\n              initial={{ opacity: reduce ? 1 : 0, scale: reduce ? 1 : 0.5 }}\n              animate={{ opacity: reduce ? 1 : show ? 1 : 0, scale: 1 }}\n              transition={{\n                duration: reduce ? 0 : 0.35,\n                delay: reduce ? 0 : 0.45 + nodeIndex * 0.06,\n                ease: EASE,\n              }}\n              style={{ transformOrigin: `${node.x}px ${node.y}px` }}\n            />\n          ))}\n\n          <circle\n            cx={HUB.x}\n            cy={HUB.y}\n            r={13}\n            fill=\"var(--card)\"\n            stroke=\"var(--border)\"\n            strokeWidth={1.5}\n          />\n          <circle cx={HUB.x} cy={HUB.y} r={3.2} fill=\"var(--foreground)\" />\n          <motion.g\n            initial={false}\n            animate={reduce ? undefined : { rotate: 360 }}\n            transition={{ repeat: Infinity, duration: 16, ease: \"linear\" }}\n            style={{ transformOrigin: `${HUB.x}px ${HUB.y}px` }}\n          >\n            <circle cx={HUB.x} cy={HUB.y - 7} r={1.35} fill=\"var(--foreground)\" />\n          </motion.g>\n        </svg>\n      </div>\n\n      <div className=\"mt-4 flex flex-wrap items-center gap-x-4 gap-y-1.5 text-[11px] text-muted-foreground\">\n        <span>\n          <span className=\"font-medium tabular-nums text-foreground\">{data.latency}</span>{\" \"}\n          p95\n        </span>\n        <span>{data.regions}</span>\n        <span className=\"ml-auto inline-flex items-center gap-1.5\">\n          <span aria-hidden=\"true\" className=\"h-1.5 w-1.5 rounded-full bg-success\" />\n          All routes healthy\n        </span>\n      </div>\n    </Tile>\n  );\n}\n\ntype SearchTileProps = {\n  data: BentoGridSearch;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n};\n\nfunction SearchTile({ data, index, show, reduce }: SearchTileProps) {\n  const typed = useTypewriter(data.query, {\n    start: show,\n    reduce,\n    speed: 62,\n  });\n  const done = reduce ? true : typed.length >= data.query.length;\n\n  return (\n    <Tile index={index} show={show} reduce={reduce} className=\"lg:col-span-5 lg:row-span-2\">\n      <div className=\"flex items-center justify-between gap-2\">\n        <p className=\"text-[12px] font-medium text-muted-foreground\">{data.label}</p>\n        <kbd className=\"rounded border border-border bg-background/60 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground\">\n          ⌘K\n        </kbd>\n      </div>\n\n      <div className=\"mt-3 flex items-center gap-2 rounded-md border border-border bg-background/60 px-2.5 py-2\">\n        <Search className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\" aria-hidden=\"true\" />\n        <span className=\"min-w-0 truncate text-[12.5px] text-foreground\">\n          {reduce ? data.query : typed}\n          {!done ? (\n            <span aria-hidden=\"true\" className=\"ml-0.5 inline-block h-3 w-px bg-foreground align-middle\" />\n          ) : null}\n        </span>\n        <span className=\"sr-only\">{data.query}</span>\n      </div>\n\n      <div className=\"mt-3 flex min-h-[132px] flex-1 flex-col gap-1\">\n        {data.results.map((result, rowIndex) => (\n          <motion.div\n            key={`${result.title}-${rowIndex}`}\n            initial={reduce ? false : { opacity: 0, y: 6 }}\n            animate={{\n              opacity: reduce || done ? 1 : 0,\n              y: reduce || done ? 0 : 6,\n            }}\n            transition={{\n              duration: reduce ? 0 : 0.35,\n              delay: reduce ? 0 : rowIndex * 0.06,\n              ease: EASE,\n            }}\n            className=\"flex min-w-0 items-center justify-between gap-3 rounded-md px-2 py-1.5 transition-colors hover:bg-muted/70\"\n          >\n            <span className=\"min-w-0 truncate text-[12.5px] font-medium text-card-foreground\">\n              {highlight(result.title, data.query)}\n            </span>\n            <span className=\"shrink-0 text-[10.5px] text-muted-foreground\">\n              {result.meta}\n            </span>\n          </motion.div>\n        ))}\n      </div>\n\n      <div className=\"mt-2 flex items-center justify-between gap-2 border-t border-border/70 pt-2.5 text-[11px] text-muted-foreground\">\n        <span>{data.results.length} results</span>\n        <span className=\"tabular-nums\">{data.hint}</span>\n      </div>\n    </Tile>\n  );\n}\n\nconst STATE_TONES: Record<BentoGridWebhooks[\"states\"][number][\"tone\"], string> = {\n  ok: \"bg-success/10 text-success\",\n  retry: \"bg-muted text-muted-foreground\",\n  muted: \"bg-foreground/[0.04] text-muted-foreground\",\n};\n\ntype WebhooksTileProps = {\n  data: BentoGridWebhooks;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n};\n\nfunction WebhooksTile({ data, index, show, reduce }: WebhooksTileProps) {\n  return (\n    <Tile index={index} show={show} reduce={reduce} className=\"sm:col-span-1 lg:col-span-4\">\n      <div className=\"flex items-center gap-1.5\">\n        <Webhook className=\"h-3.5 w-3.5 text-muted-foreground\" aria-hidden=\"true\" />\n        <p className=\"text-[12px] font-medium text-muted-foreground\">{data.label}</p>\n      </div>\n      <h3 className=\"mt-1 text-[13.5px] font-medium leading-snug text-card-foreground\">\n        {data.headline}\n      </h3>\n\n      <div className=\"mt-3 flex flex-1 items-center\">\n        <svg\n          viewBox=\"0 0 300 72\"\n          className=\"block h-auto w-full\"\n          role=\"img\"\n          aria-label=\"A webhook route with one retry before the event is delivered.\"\n        >\n          <motion.path\n            d=\"M24 36 H276\"\n            fill=\"none\"\n            stroke=\"var(--border)\"\n            strokeWidth={1.25}\n            initial={{ pathLength: reduce ? 1 : 0 }}\n            animate={{ pathLength: reduce ? 1 : show ? 1 : 0 }}\n            transition={{ duration: reduce ? 0 : 0.9, ease: EASE }}\n          />\n          <motion.path\n            d=\"M118 36 C118 62 182 62 182 36\"\n            fill=\"none\"\n            stroke=\"var(--border)\"\n            strokeWidth={1.1}\n            strokeDasharray=\"3 4\"\n            initial={{ opacity: reduce ? 1 : 0 }}\n            animate={{ opacity: reduce ? 1 : show ? 1 : 0 }}\n            transition={{ duration: reduce ? 0 : 0.5, delay: 0.35 }}\n          />\n          {!reduce ? (\n            <motion.path\n              d=\"M24 36 H276\"\n              pathLength={100}\n              fill=\"none\"\n              stroke=\"var(--foreground)\"\n              strokeWidth={1.5}\n              strokeLinecap=\"round\"\n              className=\"prequel-bento-flow\"\n              initial={{ opacity: 0 }}\n              animate={{ opacity: show ? 0.5 : 0 }}\n              transition={{ duration: 0.5, delay: 0.5 }}\n            />\n          ) : null}\n          <circle cx={24} cy={36} r={4} fill=\"var(--card)\" stroke=\"var(--muted-foreground)\" strokeWidth={1.4} />\n          <circle cx={118} cy={36} r={3.5} fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth={1.4} />\n          <circle cx={182} cy={36} r={3.5} fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth={1.4} />\n          <circle cx={276} cy={36} r={7} fill=\"var(--card)\" stroke=\"var(--border)\" strokeWidth={1.4} />\n          <path\n            d=\"M272.8 36.2l2.2 2.2 4.1-4.4\"\n            fill=\"none\"\n            stroke=\"var(--success)\"\n            strokeWidth={1.5}\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n          />\n        </svg>\n      </div>\n\n      <div className=\"mt-3 flex flex-wrap items-center gap-1.5\">\n        {data.states.map((state) => (\n          <span\n            key={state.label}\n            className={cn(\n              \"inline-flex items-center rounded-full px-1.5 py-0.5 text-[10.5px] font-medium tabular-nums\",\n              STATE_TONES[state.tone]\n            )}\n          >\n            {state.label}\n          </span>\n        ))}\n      </div>\n    </Tile>\n  );\n}\n\ntype AccessTileProps = {\n  data: BentoGridAccess;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n};\n\nfunction AccessTile({ data, index, show, reduce }: AccessTileProps) {\n  return (\n    <Tile index={index} show={show} reduce={reduce} className=\"sm:col-span-1 lg:col-span-3\">\n      <div className=\"flex items-center gap-1.5\">\n        <KeyRound className=\"h-3.5 w-3.5 text-muted-foreground\" aria-hidden=\"true\" />\n        <p className=\"text-[12px] font-medium text-muted-foreground\">{data.label}</p>\n      </div>\n      <h3 className=\"mt-1 text-[13.5px] font-medium leading-snug text-card-foreground\">\n        {data.headline}\n      </h3>\n\n      <div className=\"mt-auto flex flex-col gap-2.5 pt-4\">\n        <div className=\"flex items-center justify-between gap-2\">\n          <div className=\"flex -space-x-2\">\n            {data.members.map((member) => (\n              <span\n                key={member.initials}\n                title={member.name}\n                className=\"grid h-7 w-7 place-items-center rounded-full border border-border bg-background text-[9.5px] font-medium text-muted-foreground transition-transform duration-300 group-hover:-translate-y-0.5\"\n              >\n                {member.initials}\n              </span>\n            ))}\n          </div>\n          <span className=\"inline-flex items-center gap-1 rounded-full border border-border px-1.5 py-0.5 text-[10.5px] font-medium text-muted-foreground\">\n            <Check className=\"h-2.5 w-2.5 text-success\" aria-hidden=\"true\" />\n            {data.role}\n          </span>\n        </div>\n        <p className=\"text-[10.5px] text-muted-foreground\">{data.note}</p>\n      </div>\n    </Tile>\n  );\n}\n\ntype AlertsTileProps = {\n  data: BentoGridAlerts;\n  index: number;\n  show: boolean;\n  reduce: boolean;\n};\n\nfunction AlertsTile({ data, index, show, reduce }: AlertsTileProps) {\n  return (\n    <Tile index={index} show={show} reduce={reduce} className=\"sm:col-span-2 lg:col-span-5\">\n      <div className=\"flex items-start justify-between gap-3\">\n        <div className=\"min-w-0\">\n          <div className=\"flex items-center gap-1.5\">\n            <Bell className=\"h-3.5 w-3.5 text-muted-foreground\" aria-hidden=\"true\" />\n            <p className=\"text-[12px] font-medium text-muted-foreground\">{data.label}</p>\n          </div>\n          <h3 className=\"mt-1 text-[13.5px] font-medium leading-snug text-card-foreground\">\n            {data.headline}\n          </h3>\n        </div>\n        <span className=\"shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10.5px] font-medium tabular-nums text-muted-foreground\">\n          {data.value}\n        </span>\n      </div>\n\n      <div className=\"mt-2 flex flex-1 items-center\">\n        <svg\n          viewBox=\"0 0 320 76\"\n          className=\"block h-auto w-full\"\n          role=\"img\"\n          aria-label=\"A latency waveform with a single sharp breach above the baseline.\"\n        >\n          <line\n            x1={0}\n            x2={320}\n            y1={48}\n            y2={48}\n            stroke=\"var(--border)\"\n            strokeDasharray=\"2 5\"\n          />\n          <motion.path\n            d=\"M0 48 H58 L66 48 L72 36 L78 58 L84 48 H150 L158 48 L166 14 L174 68 L182 48 H320\"\n            fill=\"none\"\n            stroke=\"var(--foreground)\"\n            strokeWidth={1.6}\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            initial={{ pathLength: reduce ? 1 : 0 }}\n            animate={{ pathLength: reduce ? 1 : show ? 1 : 0 }}\n            transition={{ duration: reduce ? 0 : 1.1, delay: reduce ? 0 : 0.25, ease: EASE }}\n          />\n          <motion.circle\n            cx={166}\n            cy={14}\n            r={3}\n            fill=\"var(--card)\"\n            stroke=\"var(--foreground)\"\n            strokeWidth={1.4}\n            initial={{ opacity: reduce ? 1 : 0 }}\n            animate={{ opacity: reduce ? 1 : show ? 1 : 0 }}\n            transition={{ duration: reduce ? 0 : 0.3, delay: reduce ? 0 : 1 }}\n          />\n        </svg>\n      </div>\n\n      <div className=\"mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-[10.5px] text-muted-foreground\">\n        <span className=\"text-foreground\">{data.note}</span>\n        <span>{data.owner}</span>\n      </div>\n    </Tile>\n  );\n}\n\n/* ------------------------------------------------------------------ */\n/* block                                                               */\n/* ------------------------------------------------------------------ */\n\nexport function BentoGrid({\n  className,\n  title = \"The quiet parts of every release, in one surface.\",\n  description = \"Realtime sync, search, webhooks, access and alerting, wired together and observed from the same place.\",\n  realtime = DEFAULT_REALTIME,\n  search = DEFAULT_SEARCH,\n  webhooks = DEFAULT_WEBHOOKS,\n  access = DEFAULT_ACCESS,\n  alerts = DEFAULT_ALERTS,\n}: BentoGridProps) {\n  const ref = useRef<HTMLElement>(null);\n  const titleId = useId();\n  const inView = useInView(ref, { once: true, margin: \"-10% 0px\" });\n  const reduce = Boolean(useReducedMotion());\n  const show = inView || reduce;\n\n  return (\n    <section\n      ref={ref}\n      aria-labelledby={titleId}\n      className={cn(\n        \"min-w-0 rounded-xl border border-border bg-card p-4 text-card-foreground sm:p-6\",\n        className\n      )}\n    >\n      <style>{BENTO_CSS}</style>\n\n      <div className=\"mb-4 flex flex-col gap-1 sm:mb-5\">\n        <h2\n          id={titleId}\n          className=\"text-balance text-[20px] font-semibold tracking-tight sm:text-[22px]\"\n        >\n          {title}\n        </h2>\n        <p className=\"max-w-xl text-[13px] leading-relaxed text-muted-foreground\">\n          {description}\n        </p>\n      </div>\n\n      <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:auto-rows-[minmax(150px,auto)] lg:grid-cols-12\">\n        <RealtimeTile data={realtime} index={0} show={show} reduce={reduce} />\n        <SearchTile data={search} index={1} show={show} reduce={reduce} />\n        <WebhooksTile data={webhooks} index={2} show={show} reduce={reduce} />\n        <AccessTile data={access} index={3} show={show} reduce={reduce} />\n        <AlertsTile data={alerts} index={4} show={show} reduce={reduce} />\n      </div>\n    </section>\n  );\n}\n\n/* Ready-made instance for previews and docs. */\nexport function BentoGridDemo() {\n  return <BentoGrid />;\n}\n\nexport default BentoGrid;\n"}]}