Commerce Reviews Block
Customer ratings and reviews section on e-commerce product pages.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this feature
What it's for
- Customer ratings and reviews section on e-commerce product pages.
- Block of food reviews and dish ratings in digital menus.
- Reader reviews and book ratings on publishing platforms.
Includes
- Rating summary
- Rating distribution
- Star filtering
- Verified buyer filter
- Search filter
- Sort options
- Helpful voting
- Editable rating input
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add commerce-reviews-blockInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/commerce-reviews-blockUsed in
- Type
- Feature
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Sample data
- Ships with sample data in
mock-data.ts; replace it with your own.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
6 files
- components/agentic-ui/commerce-reviews-block/commerce-reviews-block.tsx
- components/agentic-ui/commerce-reviews-block/rating-input.tsx
- components/agentic-ui/commerce-reviews-block/reviews-model.ts
- components/agentic-ui/commerce-reviews-block/types.ts
- components/agentic-ui/commerce-reviews-block/rating-display.tsx
- components/agentic-ui/commerce-reviews-block/mock-data.ts
Related components
Commerce Cart Drawer
Storefront side cart opened from the header bag icon after add-to-cart.
Details and live previewCommerce Order Tracking
Order tracking page in an online store with statuses, ETA and the carrier's route map.
Details and live previewCommerce Promo Builder
Online store admin panel to define coupons and promotions with a cart preview.
Details and live previewCommerce Returns Flow
Self-service return flow for a fashion or electronics ecommerce shopper.
Details and live preview