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

## 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:
      "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
    authorImage: agentAvatars[0],
    authorName: "Leila Moreno",
    source: "google",
    dateLabel: dateLabel(Date.now() - 14 * day),
  },
  {
    rating: 5,
    reviewText:
      "The collection note listed the completed work and the care steps I should follow at home.",
    authorImage: agentAvatars[1],
    authorName: "Owen Patel",
    source: "yelp",
    dateLabel: dateLabel(Date.now() - 30 * day),
  },
  {
    rating: 4.5,
    reviewText:
      "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
    authorImage: agentAvatars[2],
    authorName: "Nadia Chen",
    source: "trustpilot",
  },
]
---

<Reviews1Block
  title="Notes from sample studio visits"
  description="Fictional review text supplied to show quote length, attribution, and ratings. These are not customer endorsements."
  reviews={reviews}
/>
```

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

## 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:
      "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
    authorImage: agentAvatars[3],
    authorName: "Leila Moreno",
    source: "google",
    dateLabel: "2 weeks ago",
  }}
  reviews={[
    {
      rating: 4.5,
      reviewText:
        "The collection note listed the completed work and the care steps I should follow at home.",
      authorImage: agentAvatars[4],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
    },
    {
      rating: 5,
      reviewText:
        "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
      authorImage: agentAvatars[5],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "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="How a studio visit might feel"
  description="Fictional review text supplied to show quote length, attribution, and ratings. These are not customer endorsements."
  reviews={[
    {
      rating: 5,
      reviewText:
        "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
      authorImage: agentAvatars[6],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
    },
    {
      rating: 5,
      reviewText:
        "The collection note listed the completed work and the care steps I should follow at home.",
      authorImage: agentAvatars[7],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
    },
    {
      rating: 4.5,
      reviewText:
        "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
      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="Sample feedback from repair customers"
  description="Fictional review text supplied to show quote length, attribution, and ratings. These are not customer endorsements."
  reviews={[
    {
      rating: 5,
      reviewText:
        "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
      authorImage: agentAvatars[0],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
    },
    {
      rating: 4.5,
      reviewText:
        "The collection note listed the completed work and the care steps I should follow at home.",
      authorImage: agentAvatars[1],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
    },
    {
      rating: 5,
      reviewText:
        "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
      authorImage: agentAvatars[2],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
    },
    {
      rating: 5,
      reviewText:
        "The appointment left enough time to ask about the material and the finish I wanted to keep.",
      authorImage: agentAvatars[3],
      authorName: "Ellis Brooks",
      source: "google",
      dateLabel: "5 days ago",
    },
    {
      rating: 4.5,
      reviewText:
        "A short message confirmed when my notebook cover was ready for collection.",
      authorImage: agentAvatars[4],
      authorName: "Samira Bell",
      source: "yelp",
      dateLabel: "1 week ago",
    },
    {
      rating: 5,
      reviewText:
        "The studio explained why one part could be repaired and another needed replacement.",
      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="A few sample notes after collection"
  description="Fictional review text supplied to show quote length, attribution, and ratings. These are not customer endorsements."
  reviews={[
    {
      reviewText:
        "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
      authorImage: agentAvatars[6],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
      rating: 5,
    },
    {
      reviewText:
        "The collection note listed the completed work and the care steps I should follow at home.",
      authorImage: agentAvatars[7],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
      rating: 4.5,
    },
    {
      reviewText:
        "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
      authorImage: agentAvatars[8],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
      rating: 5,
    },
    {
      reviewText:
        "The appointment left enough time to ask about the material and the finish I wanted to keep.",
      authorImage: agentAvatars[0],
      authorName: "Ellis Brooks",
      source: "google",
      dateLabel: "5 days ago",
      rating: 5,
    },
    {
      reviewText:
        "A short message confirmed when my notebook cover was ready for collection.",
      authorImage: agentAvatars[1],
      authorName: "Samira Bell",
      source: "yelp",
      dateLabel: "1 week ago",
      rating: 5,
    },
    {
      reviewText:
        "The studio explained why one part could be repaired and another needed replacement.",
      authorImage: agentAvatars[2],
      authorName: "Tomas Ivers",
      source: "trustpilot",
      dateLabel: "2 months ago",
      rating: 5,
    },
    {
      reviewText:
        "The assessment explained which seam needed attention. I could decide on the repair before leaving my bag.",
      authorImage: agentAvatars[3],
      authorName: "Leila Moreno",
      source: "google",
      dateLabel: "2 weeks ago",
      rating: 4.5,
    },
    {
      reviewText:
        "The collection note listed the completed work and the care steps I should follow at home.",
      authorImage: agentAvatars[4],
      authorName: "Owen Patel",
      source: "yelp",
      dateLabel: "1 month ago",
      rating: 5,
    },
    {
      reviewText:
        "I brought the loose parts to the visit. The studio checked the fastening before suggesting a replacement.",
      authorImage: agentAvatars[5],
      authorName: "Nadia Chen",
      source: "trustpilot",
      dateLabel: "3 days ago",
      rating: 5,
    },
  ]}
/>
```

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

## Reviews Portfolio

An independent section from the Portfolio template. Supply its content through props.

```astro
---
import Block from "@/components/blocks/reviews/reviews-portfolio.astro"
import asset0 from "../../../../../packages/templates/sable/site/src/assets/sable/salon-interior.png"
const content = {
  title: "Words from the chair",
  description:
    "Fictional reviews for this block example. Replace them with real feedback before publication.",
  image: {
    src: asset0,
    alt: "Warm daylight across the chairs and mirrors at Sable",
  },
  reviews: [
    {
      authorName: "Alex",
      role: "Example client",
      reviewText:
        "We talked through the cut first. I left with a shape I can style at home.",
      rating: 5,
    },
    {
      authorName: "Sam",
      role: "Example client",
      reviewText: "A quiet appointment and helpful advice about my curls.",
      rating: 5,
    },
  ],
  stats: [],
  contact: {
    label: "Plan your visit",
    href: "#visit",
    email: "hello@example.com",
    available: "Cuts · Colour · Care",
  },
  servicesHref: "#services",
}
---

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

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

## 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"
const content = {
  label: "Sample client stories",
  title: "A Little Less Friction. A Lot More Focus.",
  reviews: [
    {
      authorName: "Avery Cole",
      role: "Operations lead, Fieldnote",
      reviewText:
        "We open the day with a clear brief. The team can talk about the work instead of finding the latest update.",
      rating: 5,
      source: "google",
      image: {
        src: "/media/gnotch/team-working.webp",
        alt: "Colleagues sharing ideas around a work table",
      },
    },
    {
      authorName: "Samira Lane",
      role: "Founder, Commonplace",
      reviewText:
        "Gnotch started with our intake form. One small change made the whole project hand-off easier to follow.",
      rating: 5,
      source: "yelp",
      image: {
        src: "/media/gnotch/planning-session.webp",
        alt: "A team comparing notes in a shared workspace",
      },
    },
    {
      authorName: "Rowan Ellis",
      role: "Support lead, Northline",
      reviewText:
        "The assistant prepares a reply and shows its sources. We can spend our time on the questions that need a person.",
      rating: 5,
      source: "trustpilot",
      image: {
        src: "/media/gnotch/desk-session.webp",
        alt: "Colleagues reviewing a task at a laptop",
      },
    },
    {
      authorName: "Casey Park",
      role: "Director, Plainwork",
      reviewText:
        "We know what runs, what failed, and who owns the next step. That clarity matters as much as the time saved.",
      rating: 5,
      source: "google",
      image: {
        src: "/media/gnotch/workshop.webp",
        alt: "A small group working together with laptops",
      },
    },
    {
      authorName: "Morgan Reed",
      role: "Studio lead, Daymark",
      reviewText:
        "The workflow fits the tools we already use. We did not need to rebuild the way our team works.",
      rating: 5,
      source: "yelp",
      image: {
        src: "/media/gnotch/project-review.webp",
        alt: "A project discussion around an office table",
      },
    },
  ],
} 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-agency.astro"
const section = {
  label: "Illustrative client notes",
  title: "Good work starts",
  accent: "with a conversation",
  reviews: [
    {
      rating: 5,
      reviewText:
        "“The new archive makes the thinking behind each home much easier to understand.”",
      authorName: "Leah Wren",
      role: "Principal, Rook & Stone · sample quote",
      authorImage: "/media/foldline/avatar-lw.svg",
      source: "google",
    },
    {
      rating: 5,
      reviewText:
        "“The site has the same calm welcome we want a guest to feel at the door.”",
      authorName: "Owen Hart",
      role: "Founder, Morrow Rooms · sample quote",
      authorImage: "/media/foldline/avatar-oh.svg",
      source: "yelp",
    },
    {
      rating: 5,
      reviewText:
        "“Our materials, proportions, and process finally feel part of one story.”",
      authorName: "Ada Bell",
      role: "Director, Tern Objects · sample quote",
      authorImage: "/media/foldline/avatar-ab.svg",
      source: "trustpilot",
    },
    {
      rating: 5,
      reviewText:
        "“A close, thoughtful process that gave us space to make the right decisions.”",
      authorName: "Kit Arden",
      role: "Interior designer · sample quote",
      authorImage: "/media/foldline/avatar-ka.svg",
      source: "google",
    },
  ],
}
---

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

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

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/shared/agency/types.ts"
    name="AgencyReviewsProps"
/>

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

## Home services reviews

```astro
---
import Block from "@/components/blocks/reviews/reviews-remodify.astro"
const content = {
  eyebrow: "The Homeowner Experience",
  title: "Home Stories.",
  note: "[ Illustrative reviews for this template ]",
  reviews: [
    {
      authorName: "Jamie R.",
      role: "Sample kitchen review",
      reviewText:
        "The layout finally makes sense for our family. We have a place for everything, and room to cook together.",
      rating: 5,
      source: "google",
    },
    {
      authorName: "Morgan T.",
      role: "Sample bathroom review",
      reviewText:
        "We could see the choices clearly before work began. The new bathroom feels calm, bright, and much easier to use.",
      rating: 5,
      source: "yelp",
    },
    {
      authorName: "Casey L.",
      role: "Sample renovation review",
      reviewText:
        "Having one person to call helped us keep track of the details. Each stage felt clear and manageable.",
      rating: 5,
      source: "trustpilot",
    },
    {
      authorName: "Alex P.",
      role: "Sample interior review",
      reviewText:
        "The built-in storage made a real difference. Our living room feels open without losing its character.",
      rating: 5,
      source: "google",
    },
    {
      authorName: "Taylor S.",
      role: "Sample kitchen review",
      reviewText:
        "The team helped us decide where to spend and where to keep things simple. The result fits the way we live.",
      rating: 5,
      source: "yelp",
    },
    {
      authorName: "Jordan K.",
      role: "Sample whole-home review",
      reviewText:
        "The rooms feel connected now. The finishes work together, and the home still feels like ours.",
      rating: 5,
      source: "trustpilot",
    },
  ],
  promises: [
    {
      title: "Room for Your Input",
      description: "Your priorities guide the work.",
    },
    {
      title: "Clear Next Steps",
      description: "Know what is happening and why.",
    },
  ],
  action: {
    label: "Start Your Home Story",
    href: "#contact",
  },
}
---

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

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

## 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](/blocks/logos) for brand relationships and [CTA](/blocks/cta) after evidence that supports the next action.
