Skip to content

Rated review grid in React

Three customer reviews as cards, with star rating and customer tenure.

Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in React

RatedReviewGrid.tsx
export function RatedReviewGrid() {
  return (
    <div className="mx-auto w-[min(100%_-_2rem,66rem)] py-8">
      <ul className="grid gap-4 md:grid-cols-3">
        <li>
          <figure className="grid h-full gap-3 rounded-[18px] border border-pink-200 bg-white p-5.5 dark:border-[#43213a] dark:bg-[#22101a]">
            <p className="tracking-[0.15em] text-[#b4234f] dark:text-[#f9a8c9]">
              <span aria-hidden="true">★★★★★</span>
              <span className="sr-only">Note : 5 sur 5</span>
            </p>
            <blockquote>
              <p className="leading-relaxed">

Free component: copy it freely, including for commercial projects.

Testimonials components in React
  • A customer reviews section with average rating and star distribution; each bar is a button that filters the reviews with that rating.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A reviews section for local shops: average star rating out of 5, a star breakdown that animates into view and the three latest reviews signed with a first name and a town.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A CSS-drawn video poster with a play button, the testimonial's key quote, its author, and the timestamped transcript in a collapsible panel.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A row of client references as wordmarks, followed by a representative quote.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single highlighted quote, with the name and role of its author.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component