---
title: Products Blocks for Astro
description: "Astro product collections with images, descriptions, and price displays."
seo:
    title: "Astro Products blocks: examples and source"
sidebar:
    label: "Products"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
mode: wide
---

## Image grid

Show product images and short descriptions in a grid.

```astro
---
import ProductsImageGrid from "@/components/blocks/products/products-image-grid.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<ProductsImageGrid
  badge="gnostic AI · Sample catalog"
  title="Test materials for an automation pilot"
  products={[
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Ticket routing test kit",
      description:
        "Three sample support tickets, a queue map, and a worksheet to compare expected and actual assignments.",
      price: { value: 38, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Invoice intake test kit",
      description:
        "Three sample invoices and a purchase order to test a match, a disputed total, and a duplicate.",
      price: { value: 14, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Reply review checklist",
      description:
        "A checklist for comparing an AI draft with the customer’s question and the source used to answer it.",
      price: { value: 6, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Workflow brief template",
      description:
        "A one-page form to record the trigger, queue owner, and next step when a request needs human review.",
      price: { value: 22, currency: "USD", unit: "copy" },
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/products-image-grid
```

## List

Use a compact list when the product details need less media.

```astro
---
import ProductsList from "@/components/blocks/products/products-list.astro"
---

<ProductsList
  badge="gnostic AI · Sample catalog"
  title="Compare the contents of each test kit"
  products={[
    {
      title: "Ticket routing test kit",
      description:
        "Three sample support tickets, a queue map, and a worksheet to compare expected and actual assignments.",
      price: { value: 38, currency: "USD", unit: "copy" },
    },
    {
      title: "Invoice intake test kit",
      description:
        "Three sample invoices and a purchase order to test a match, a disputed total, and a duplicate.",
      price: { value: 14, currency: "USD", unit: "copy" },
    },
    {
      title: "Reply review checklist",
      description:
        "A checklist for comparing an AI draft with the customer’s question and the source used to answer it.",
      price: { value: 6, currency: "USD", unit: "copy" },
    },
    {
      title: "Workflow brief template",
      description:
        "A one-page form to record the trigger, queue owner, and next step when a request needs human review.",
      price: { value: 22, currency: "USD", unit: "copy" },
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/products-list
```

## Price cards

Make the price easy to compare across product cards.

```astro
---
import ProductsPriceCards from "@/components/blocks/products/products-price-cards.astro"
---

<ProductsPriceCards
  badge="gnostic AI · Sample catalog"
  title="Compare prices for pilot materials"
  products={[
    {
      title: "Ticket routing test kit",
      description:
        "Three sample support tickets, a queue map, and a worksheet to compare expected and actual assignments.",
      price: { value: 38, currency: "USD" },
    },
    {
      title: "Invoice intake test kit",
      description:
        "Three sample invoices and a purchase order to test a match, a disputed total, and a duplicate.",
      price: { value: 14, currency: "USD" },
    },
    {
      title: "Reply review checklist",
      description:
        "A checklist for comparing an AI draft with the customer’s question and the source used to answer it.",
      price: { value: 6, currency: "USD" },
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/products-price-cards
```

## Action row

Add a collection action beside the product row.

```astro
---
import ProductsActionRow from "@/components/blocks/products/products-action-row.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<ProductsActionRow
  title="Prepare an automation test"
  description="This gnostic AI sample catalog shows test materials for support and accounts teams. Prices are illustrative."
  buttons={[
    {
      label: "View the routing kit",
      href: "/blocks/product#featured",
      variant: "default",
    },
    {
      label: "Read the routing test",
      href: "/blocks/article#image-header",
      variant: "outline",
    },
  ]}
  products={[
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Ticket routing test kit",
      description:
        "Three sample support tickets, a queue map, and a worksheet to compare expected and actual assignments.",
      price: { value: 38, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Invoice intake test kit",
      description:
        "Three sample invoices and a purchase order to test a match, a disputed total, and a duplicate.",
      price: { value: 14, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Reply review checklist",
      description:
        "A checklist for comparing an AI draft with the customer’s question and the source used to answer it.",
      price: { value: 6, currency: "USD", unit: "copy" },
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/products-action-row
```

## Hover grid

Use image-led cards with the block hover treatment.

```astro
---
import ProductsHoverGrid from "@/components/blocks/products/products-hover-grid.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<ProductsHoverGrid
  badge="gnostic AI · Sample catalog"
  title="Choose a kit for your pilot"
  buttons={[
    {
      label: "View the routing kit",
      href: "/blocks/product#featured",
      variant: "default",
    },
  ]}
  products={[
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Ticket routing test kit",
      description:
        "Three sample support tickets, a queue map, and a worksheet to compare expected and actual assignments.",
      price: { value: 38, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Invoice intake test kit",
      description:
        "Three sample invoices and a purchase order to test a match, a disputed total, and a duplicate.",
      price: { value: 14, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Reply review checklist",
      description:
        "A checklist for comparing an AI draft with the customer’s question and the source used to answer it.",
      price: { value: 6, currency: "USD", unit: "copy" },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Product image placeholder",
      },
      title: "Workflow brief template",
      description:
        "A one-page form to record the trigger, queue owner, and next step when a request needs human review.",
      price: { value: 22, currency: "USD", unit: "copy" },
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/products-hover-grid
```

## Choose a products layout

Choose a products grid when readers need to scan several items before opening a detail view. Keep each item’s information consistent so comparison is possible.

## Pass content from Astro

Pass the products array accepted by the chosen block. Format price and unit data consistently. Filtering, stock checks, and pagination are separate application concerns.

## Responsive layout and images

Check grid wrapping with long product titles and varied images. Use thumbnail sources and a consistent crop policy. Where the variant exposes links, make each destination name clear without relying only on its image.

## Compose the next section

Use [Product](/ui/blocks/product) for item detail and [Pagination](/ui/components/pagination) for collections split across routes.
