---
title: Reviews Blocks for Astro
description: "Astro testimonial and review blocks with quotes, attribution, and rating displays. Choose a layout and add real customer feedback."
seo:
    title: "Astro Reviews blocks: examples and source"
sidebar:
    label: "Reviews"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
mode: wide
---

## Cards

Give each sample quote its own card and attribution.

```astro
---
import Reviews1Block from "@/components/blocks/reviews/reviews-1.astro"
import { agentAvatars } from "@/lib/agent-avatars"

const day = 24 * 60 * 60 * 1000
const formatter = new Intl.RelativeTimeFormat("en", { numeric: "auto" })

/** Format a review timestamp. The block only receives the finished label. */
function dateLabel(timestamp: number) {
  const days = Math.round((timestamp - Date.now()) / day)
  return formatter.format(days, "day")
}

const reviews = [
  {
    rating: 5,
    reviewText:
      "I expected the billing ticket to go to accounts. The test showed me the suggested queue before we moved a single ticket.",
    authorImage: agentAvatars[0],
    authorName: "Leila Moreno",
    source: "google",
    dateLabel: dateLabel(Date.now() - 14 * day),
  },
  {
    rating: 5,
    reviewText:
      "I opened the policy beside the draft. The packaging rule covered fragile items, so I asked which product the customer wanted to return.",
    authorImage: agentAvatars[1],
    authorName: "Owen Patel",
    source: "yelp",
    dateLabel: dateLabel(Date.now() - 30 * day),
  },
  {
    rating: 4.5,
    reviewText:
      "The draft showed $264 beside a $240 purchase order. I could check the difference against the original invoice.",
    authorImage: agentAvatars[2],
    authorName: "Nadia Chen",
    source: "trustpilot",
  },
]
---

<Reviews1Block
  title="What reviewers checked in the pilot"
  description="Fictional reviews and ratings from three gnostic AI exercises. The sample teams tested ticket routing, invoice intake, and AI-drafted replies."
  reviews={reviews}
/>
```

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

## Masonry

Arrange reviews of different lengths in columns.

```astro
---
import Block from "@/components/blocks/reviews/reviews-masonry.astro"

const content = {
  eyebrow: "gnostic AI · Fictional reviews",
  title: "What changed after the routing test?",
  description:
    "Two sample team members describe the handoff from a routing rule to a person.",
  reviews: [
    {
      authorName: "Alex Bell",
      rating: 5,
      quote: "I could see the whole request.",
      reviewText:
        "The customer asked for an invoice and help with setup. Both questions stayed in the ticket I reviewed.",
    },
    {
      authorName: "Jo Lane",
      rating: 4,
      quote: "We tested the handoff again.",
      reviewText:
        "After we changed the rule, I ran the saved tickets and checked each assignment against the expected owner.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-masonry
```

## Featured

Place one featured sample quote beside shorter quotes.

```astro
---
import Reviews2Block from "@/components/blocks/reviews/reviews-2.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Reviews2Block
  featured={{
    rating: 5,
    reviewText:
      "I expected the billing ticket to go to accounts. The test showed me the suggested queue before we moved a single ticket.",
    authorImage: agentAvatars[3],
    authorName: "Leila Moreno",
    source: "google",
    dateLabel: "Fictional review · 2 weeks ago",
  }}
  reviews={[
    {
      rating: 4.5,
      reviewText:
        "I opened the policy beside the draft. The packaging rule covered fragile items, so I asked which product the customer wanted to return.",
      authorImage: agentAvatars[4],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "Fictional review · 1 month ago",
    },
    {
      rating: 5,
      reviewText:
        "The draft showed $264 beside a $240 purchase order. I could check the difference against the original invoice.",
      authorImage: agentAvatars[5],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "Fictional review · 3 days ago",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-2
```

## Grid

Arrange sample quotes in a grid with their attributions.

```astro
---
import Reviews3Block from "@/components/blocks/reviews/reviews-3.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Reviews3Block
  title="Three checks from the pilot queue"
  description="Fictional reviews and ratings from three gnostic AI exercises. The sample teams tested ticket routing, invoice intake, and AI-drafted replies."
  reviews={[
    {
      rating: 5,
      reviewText:
        "I expected the billing ticket to go to accounts. The test showed me the suggested queue before we moved a single ticket.",
      authorImage: agentAvatars[6],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
    },
    {
      rating: 5,
      reviewText:
        "I opened the policy beside the draft. The packaging rule covered fragile items, so I asked which product the customer wanted to return.",
      authorImage: agentAvatars[7],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
    },
    {
      rating: 4.5,
      reviewText:
        "The draft showed $264 beside a $240 purchase order. I could check the difference against the original invoice.",
      authorImage: agentAvatars[8],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-3
```

## Marquee

Move sample review cards through the section.

```astro
---
import Reviews4Block from "@/components/blocks/reviews/reviews-4.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Reviews4Block
  title="What the sample teams found"
  description="Fictional reviews and ratings from three gnostic AI exercises. The sample teams tested ticket routing, invoice intake, and AI-drafted replies."
  reviews={[
    {
      rating: 5,
      reviewText:
        "I expected the billing ticket to go to accounts. The test showed me the suggested queue before we moved a single ticket.",
      authorImage: agentAvatars[0],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
    },
    {
      rating: 4.5,
      reviewText:
        "I opened the policy beside the draft. The packaging rule covered fragile items, so I asked which product the customer wanted to return.",
      authorImage: agentAvatars[1],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
    },
    {
      rating: 5,
      reviewText:
        "The draft showed $264 beside a $240 purchase order. I could check the difference against the original invoice.",
      authorImage: agentAvatars[2],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
    },
    {
      rating: 5,
      reviewText:
        "Our mixed ticket asked about setup and billing. I received the whole message and could choose who should answer first.",
      authorImage: agentAvatars[3],
      authorName: "Ellis Brooks",
      source: "google",
      dateLabel: "5 days ago",
    },
    {
      rating: 4.5,
      reviewText:
        "When I sent the invoice a second time, I could open the first record and check the supplier and invoice number.",
      authorImage: agentAvatars[4],
      authorName: "Samira Bell",
      source: "yelp",
      dateLabel: "1 week ago",
    },
    {
      rating: 5,
      reviewText:
        "We paused the rule in the test queue. I could still see the waiting requests and assign them by hand.",
      authorImage: agentAvatars[5],
      authorName: "Tomas Ivers",
      source: "trustpilot",
      dateLabel: "2 months ago",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-4
```

## Rows

Use rows when each sample quote needs a wider reading area.

```astro
---
import Reviews5Block from "@/components/blocks/reviews/reviews-5.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Reviews5Block
  title="Notes from a pilot handoff"
  description="Fictional reviews and ratings from three gnostic AI exercises. The sample teams tested ticket routing, invoice intake, and AI-drafted replies."
  reviews={[
    {
      reviewText:
        "I expected the billing ticket to go to accounts. The test showed me the suggested queue before we moved a single ticket.",
      authorImage: agentAvatars[6],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
      rating: 5,
    },
    {
      reviewText:
        "I opened the policy beside the draft. The packaging rule covered fragile items, so I asked which product the customer wanted to return.",
      authorImage: agentAvatars[7],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
      rating: 4.5,
    },
    {
      reviewText:
        "The draft showed $264 beside a $240 purchase order. I could check the difference against the original invoice.",
      authorImage: agentAvatars[8],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
      rating: 5,
    },
    {
      reviewText:
        "Our mixed ticket asked about setup and billing. I received the whole message and could choose who should answer first.",
      authorImage: agentAvatars[0],
      authorName: "Ellis Brooks",
      source: "google",
      dateLabel: "5 days ago",
      rating: 5,
    },
    {
      reviewText:
        "When I sent the invoice a second time, I could open the first record and check the supplier and invoice number.",
      authorImage: agentAvatars[1],
      authorName: "Samira Bell",
      source: "yelp",
      dateLabel: "1 week ago",
      rating: 5,
    },
    {
      reviewText:
        "We paused the rule in the test queue. I could still see the waiting requests and assign them by hand.",
      authorImage: agentAvatars[2],
      authorName: "Tomas Ivers",
      source: "trustpilot",
      dateLabel: "2 months ago",
      rating: 5,
    },
    {
      reviewText:
        "After we changed the queue rule, I could run the same three tickets and compare the owners with my notes.",
      authorImage: agentAvatars[3],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
      rating: 4.5,
    },
    {
      reviewText:
        "We kept the question with the approved reply. When the policy changed, I knew which draft to check again.",
      authorImage: agentAvatars[4],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
      rating: 5,
    },
    {
      reviewText:
        "I counted the drafts after the duplicate arrived. Only the original matching bill was ready for approval.",
      authorImage: agentAvatars[5],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
      rating: 5,
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-5
```

## Image quote

```astro
---
import Block from "@/components/blocks/reviews/reviews-image-quote.astro"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const content = {
  title: "Before a support agent sends the reply",
  description:
    "In these fictional reviews, two members of a sample support team check a draft against the returns policy.",
  image: {
    src: lakeUrl,
    alt: "Mountain ridge beyond a lake",
  },
  stats: [],
  contact: {
    label: "View the pilot brief",
    href: "/blocks/contact#editorial-contact",
    email: "projects@example.com",
    available: "Sample project inquiry",
  },
  servicesHref: "/blocks/services#process",
  reviews: [
    {
      authorName: "Morgan Lee",
      role: "Policy owner",
      reviewText:
        "The draft said every item needed its original box. I found the line in the policy that limited the rule to fragile items.",
      rating: 5,
    },
    {
      authorName: "Ira Bell",
      role: "Support agent",
      reviewText:
        "The customer had not named the product. I could ask what they bought before telling them how to pack it.",
      rating: 5,
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-image-quote
```

## Image review carousel

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/reviews/reviews-image-carousel/reviews-image-carousel.astro"
import type { ImageReviewsContent } from "@/components/blocks/reviews/reviews-image-carousel/types"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import hall from "../../../src/assets/images/entrance-hall.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const hallUrl = (await getImage({ src: hall, width: 1200, format: "webp" })).src
const content = {
  label: "gnostic AI · Fictional reviews",
  title: "Two views of the invoice test",
  reviews: [
    {
      authorName: "Morgan Lee",
      role: "Accounts reviewer",
      reviewText:
        "I could see the $24 difference on the draft and open the purchase order to check it.",
      rating: 5,
      image: {
        src: lakeUrl,
        alt: "Mountain ridge beyond a lake",
      },
    },
    {
      authorName: "Ira Bell",
      role: "Queue owner",
      reviewText:
        "I sent the matching invoice twice. The second copy pointed to the first record for review.",
      rating: 5,
      image: {
        src: hallUrl,
        alt: "An illustrated entrance hall",
      },
    },
  ],
} satisfies ImageReviewsContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-image-carousel
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/reviews/reviews-image-carousel/types.ts"
    name="ImageReviewsProps"
/>

## Editorial reviews

Use this section for the reviews part of a studio site.

```astro
---
import Section from "@/components/blocks/reviews/reviews-centered-quotes/reviews-centered-quotes.astro"

const section = {
  label: "gnostic AI · Fictional reviews",
  title: "Who gets the ticket",
  accent: "when two queues match?",
  reviews: [
    {
      authorName: "Morgan Lee",
      role: "Support lead",
      reviewText:
        "I wrote down who should own each ticket before we ran the rule. That gave us a way to spot a wrong assignment.",
      rating: 5,
    },
    {
      authorName: "Ira Bell",
      role: "Intake reviewer",
      reviewText:
        "The mixed request reached me with the original message. I could read both questions before assigning it.",
      rating: 5,
    },
  ],
}
---

<Section {...section} />
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-centered-quotes
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/reviews/reviews-centered-quotes/types.ts"
    name="ReviewsCenteredQuotesProps"
/>

See [serif accent font setup](/ui/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Promise grid

```astro
---
import Block from "@/components/blocks/reviews/reviews-promise-grid/reviews-promise-grid.astro"

const content = {
  eyebrow: "gnostic AI · Fictional reviews",
  title: "What the queue owner takes over",
  note: "Sample handoff for a support routing pilot.",
  action: {
    label: "See the handoff checklist",
    href: "/blocks/features#illustrated-timeline",
  },
  reviews: [
    {
      authorName: "Morgan Lee",
      role: "Support lead",
      reviewText:
        "I kept the three test tickets with their expected queues. I can check the next rule change myself.",
      rating: 5,
    },
    {
      authorName: "Ira Bell",
      role: "Intake reviewer",
      reviewText:
        "We practiced with the rule paused. I knew where to find the waiting request and how to assign it.",
      rating: 5,
    },
  ],
  promises: [
    {
      title: "Repeat the test",
      description: "Give the owner the saved tickets and expected assignments.",
    },
    {
      title: "Practice manual routing",
      description:
        "Pause the rule in the test queue and let the owner assign a ticket.",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/reviews-promise-grid
```

## Choose a reviews layout

Choose a review layout that gives each quote enough room to be read. Use actual feedback and accurate attribution. A short specific quote is more useful than a generic claim.

## Pass content from Astro

Pass each review with review text, the reviewer name, and a rating. Add a portrait when you have one. Pass `source` as an icon name, such as `google` or `yelp`, when you want the platform icon. Pass `dateLabel` when you want a date line. The layout shows that text as supplied and leaves the line out when it is empty. A Google review can pass the `relativeTime` string from the API. You can also format a timestamp in the page and pass the result. The block displays supplied reviews; it does not collect, verify, or moderate them.

## Responsive layout and images

Check long quotes and attribution at narrow widths. Portrait images should have consistent crops, and a missing image needs a useful fallback. Keep the rating understandable in text where the stars alone are unclear.

## Compose the next section

Use [Logos](/ui/blocks/logos) for brand relationships and [CTA](/ui/blocks/cta) after evidence that supports the next action.
