# Integrations: categorized card grid

> A directory of integration cards with text marks, categories and optional detail links.

- Kind: block · Category: Integrations · Interactivity: native
- Install: `npx shadcn@latest add @haze/integrations-card-grid`
- File: `src/components/haze/blocks/integrations-card-grid.astro`
- npm dependencies: @lucide/astro
- Registry dependencies: @haze/utils
- Docs page: https://hazeui.com/blocks/integrations-card-grid

## Use when
- Introducing a collection of services that connect to a product
- Each integration needs a short explanation and category

## Avoid when
- You only need a row of customer names; use logos-row

## Alternatives
- [logos-row](https://hazeui.com/blocks/logos-row.md)

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| id | `string` | "integrations-card-grid" | no | Section ID prefix; give repeated instances different values. |
| eyebrow | `string` | "Integrations" | no | Label above the title. |
| title | `string` | demo heading | no | Heading for the integration collection. |
| description | `string` | demo copy | no | Introductory text above the cards. |
| headingLevel | `1 \| 2 \| 3` | 2 | no | Heading level; integration names use the next level. |
| integrations | `{ name: string; mark: string; category: string; description: string; href?: string }[]` | 6 fictional services | no | Integration details; mark is a short decorative text mark and href is optional. |
| class | `string` |  | no | Additional classes on the section. |

## Accessibility
- Each service is a list item with a descriptive heading and text category.
- Letter marks are decorative, and optional detail links use the integration name.
- Key Tab: Visit the integrations that have detail URLs.

## Agent prompts

### Install and use

Install the Haze UI block "Integrations: categorized card grid" with `npx shadcn@latest add @haze/integrations-card-grid`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "https://hazeui.com/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import IntegrationsCardGrid from "@/components/haze/blocks/integrations-card-grid.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: https://hazeui.com/blocks/integrations-card-grid.md

### Customize with real content

Adapt the Haze integrations-card-grid block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, integrations, class. Keep the layout, the heading level rules and these accessibility details: Each service is a list item with a descriptive heading and text category. Letter marks are decorative, and optional detail links use the integration name. Do not add raw color classes; use the Haze tokens.

### Choose the right block

Before using integrations-card-grid, check it fits: use it when introducing a collection of services that connect to a product; each integration needs a short explanation and category. Avoid it when you only need a row of customer names; use logos-row. Alternatives: @haze/logos-row.

## Example requests that should lead here
- Show a grid of integrations with category labels and short descriptions

## Source

```astro
---
import { ArrowUpRight, Blocks, Calendar, Compass, GitBranch, Layers, MessageSquare } from "@lucide/astro";
import { cn } from "../../../lib/haze/utils";

interface Props {
  id?: string;
  eyebrow?: string;
  title?: string;
  description?: string;
  headingLevel?: 1 | 2 | 3;
  integrations?: { name: string; mark?: string; category: string; description: string; href?: string }[];
  class?: string;
}

const {
  id = "integrations-card-grid",
  eyebrow = "Integrations",
  title = "Bring your tools into the conversation",
  description = "Connect the places where work happens and keep the important context close by.",
  headingLevel = 2,
  integrations = [
    { name: "Relay", category: "Communication", description: "Share project updates with the conversations around them." },
    { name: "Forge", category: "Development", description: "Connect code changes to the work they help complete." },
    { name: "Canvas", category: "Design", description: "Keep design explorations alongside the project brief." },
    { name: "Tidewell", category: "Analytics", description: "Bring product signals into your planning discussions." },
    { name: "Ledger", category: "Operations", description: "Give teams a shared view of the work behind each request." },
    { name: "Orbit", category: "Calendar", description: "Make space for milestones in the schedule your team uses." },
  ],
  class: className,
} = Astro.props;
const Heading = ({ 1: "h1", 2: "h2", 3: "h3" } as const)[headingLevel];
const IntegrationHeading = ({ 1: "h2", 2: "h3", 3: "h4" } as const)[headingLevel];
const icons = [MessageSquare, GitBranch, Layers, Compass, Blocks, Calendar];
---

<section aria-labelledby={`${id}-title`} class={cn("bg-background px-6 py-20 sm:py-24", className)}>
  <div class="mx-auto max-w-6xl">
    <div class="max-w-2xl">
      <p class="text-[0.6875rem]/4 font-medium tracking-wider text-muted-foreground uppercase">{eyebrow}</p>
      <Heading id={`${id}-title`} class="mt-3 text-3xl/9 font-semibold tracking-tight text-balance text-foreground sm:text-4xl/11">{title}</Heading>
      <p class="mt-4 text-base/7 text-pretty text-muted-foreground">{description}</p>
    </div>
    <ul class="mt-12 grid gap-4 md:grid-cols-2 lg:grid-cols-3">
      {integrations.map((integration, idx) => {
        const Icon = icons[idx % icons.length];
        return (
          <li class="min-w-0 rounded-xl border border-border bg-card p-6">
            <div class="flex items-start justify-between gap-4">
              <span aria-hidden="true" class="flex size-11 shrink-0 items-center justify-center rounded-lg bg-foreground/5 text-foreground inset-ring inset-ring-frame">
                <Icon class="size-5" aria-hidden="true" />
              </span>
              <span class="rounded-sm bg-foreground/5 px-2 py-1 text-[0.6875rem]/4 font-medium text-muted-foreground inset-ring inset-ring-frame">{integration.category}</span>
            </div>
            <IntegrationHeading class="mt-5 text-base/6 font-semibold tracking-tight text-foreground">
              {integration.href ? <a href={integration.href} class="rounded-sm underline-offset-4 hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring">{integration.name}<ArrowUpRight aria-hidden="true" class="ml-1 inline size-4" /></a> : integration.name}
            </IntegrationHeading>
            <p class="mt-2 text-sm/6 text-muted-foreground">{integration.description}</p>
          </li>
        );
      })}
    </ul>
  </div>
</section>
```
