---
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
---

## Featured

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

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

<Product1Block
  badge="Index Supply"
  title="The weekly planning folio"
  description="A refillable cover with room for a weekly plan, loose notes, and the details you want to keep close."
  image={{
    src: placeholderImage,
    alt: "Product image placeholder",
  }}
  price={{
    value: 38,
    currency: "USD",
    unit: "item",
  }}
  note="Sample product details: refill sheets are sold separately."
  buttons={[
    {
      label: "Browse the catalog",
      href: "https://example.com/index-supply/catalog",
      variant: "default",
    },
    {
      label: "Read product details",
      href: "https://example.com/index-supply/catalog",
      variant: "outline",
    },
  ]}
/>
```

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

## 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](/blocks/products) for a collection and [Content](/blocks/content) for additional specifications or usage detail.
