---
title: Product Blocks for Astro
description: "Astro product detail sections with media, price text, and actions."
seo:
    title: "Astro Product blocks: examples and source"
sidebar:
    label: "Product"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
mode: wide
---

## Featured

Keep a product image, price, description, and actions in one section.

```astro
---
import ProductFeatured from "@/components/blocks/product/product-featured.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<ProductFeatured
  badge="gnostic AI · Sample catalog"
  title="Ticket routing test kit"
  description="Route a billing request, a setup question, and an unclear ticket. Use the worksheet to record the expected queue and the queue your rule selects."
  image={{
    src: placeholderImage,
    alt: "Product image placeholder",
  }}
  price={{
    value: 38,
    currency: "USD",
    unit: "copy",
  }}
  note="The sample kit uses fictional tickets. You can run the exercise without access to a live support queue."
  buttons={[
    {
      label: "Compare the test kits",
      href: "/blocks/products#list",
      variant: "default",
    },
    {
      label: "Read the routing test",
      href: "/blocks/article#image-header",
      variant: "outline",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/product-featured
```

## Choose a product layout

Choose a product block for one item or offer. Give the description enough detail to explain what the reader receives and use the note for a real condition or limitation.

## Pass content from Astro

Pass the title, image, price object, note, and action links required by the variant. Product data and availability belong in the page or backend. The display does not add an item to a cart by itself.

## Responsive layout and images

Check the product image crop, price wrapping, and action layout on a phone. Supply accurate alt text and an image size suited to the main product view. A detail image should show useful evidence about the item.

## Compose the next section

Use [Products](/ui/blocks/products) for a collection and [Content](/ui/blocks/content) for additional specifications or usage detail.
