Motionshelf
← All components

Social proof

Review Card

The stars light up one by one, the rating and the review count climb, and the reviews take turns.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/review-card.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
ratingnumber4.9Average rating, from 0 to 5.
countnumber312Total number of reviews.
reviewsReview[]3 reviewsReviews shown in turn: name, text and when.
titlestring"Customer reviews"Heading above the rating.
countLabelstring"reviews"Word after the review count.
localestring"en-US"Locale used to format the numbers.
starColorstring"#f5b400"Color of the stars.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react