Back to blocks
BlockeCommerceFree

Write a Review Form React component

A product review form with a hover-preview star rating, a fit scale, headline and review fields with a live character goal, quick tags, drag-and-drop photo previews, a recommend toggle, name and email with an initial-only option, a live preview card, inline validation and an animated thank-you screen.

About the Write a Review Form component

Write a Review Form collects everything a useful review needs in one calm screen: a star rating, how the product fits, a headline, the review itself, quick tags, photos and whether the buyer would recommend it.

A live preview beside the form shows exactly how the review will look while it is being written, which nudges people toward clearer headlines and longer, more helpful text. Validation is inline and friendly, and submitting ends on a thank-you screen with an optional reward.

When to use it

Use it on a dedicated review page linked from post-delivery emails or the order history, where buyers arrive ready to write.

For a quick one-tap rating inside an email or a product card, a star row alone is enough; send people here only when they choose to add more.

Installation

Add the Write a Review Form component to your project with the shadcn CLI. It lands in components/write-a-review-form.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/write-a-review-form

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Sticky Add to Cart Bar
Free
Photo Review Gallery
Free
Size Guide Modal
Free
Rating Summary Breakdown
Free
Frequently Bought Together
Free
Gift Card Designer
Free