@ethioreview/review-widget-react.
Browse live UI previews
Open the component gallery to see all 12 layouts rendered with sample rating data.
Shared data shape
Every layout accepts aReviewAggregateData object:
GET /widgets/businesses/{orgId}/rating or GET /widgets/resolve/{widgetId} with your publishable key.
Quick reference
Hero review banner
Landing pages and homepage hero sections. Layout key:
hero-bannerTrustScore summary
Above-the-fold headers and product detail pages. Layout key:
trust-scoreRating breakdown card
Transparency sections with per-star bars. Layout key:
rating-breakdownVertical stacked card
Sidebars and narrow columns. Layout key:
vertical-stackedMicro badge
Inline placement next to product names. Layout key:
micro-badgeInline rating pill
Footers, product cards, nav bars. Layout key:
inline-pillReview carousel card
Testimonial sections with featured quotes. Layout key:
review-carouselComparison strip
KPI rows and analytics panels. Layout key:
comparison-stripCircular score
Dashboards and stat panels. Layout key:
circular-scoreVerified business card
Trust badges and checkout pages. Layout key:
verified-businessFloating badge
Sticky corner placement. Layout key:
floating-badgeDark promo card
Marketing pages and dark sections. Layout key:
dark-promoLayout reference
Dashboard widget types
When you register a widget in the dashboard, choose the type closest to your target layout:
Set min stars, limit, and theme colors in the widget config JSON. See Widget registry for API details.
React usage
Import the stylesheet once in your app entry:Auto layout from dashboard widget
ReviewWidget picks a layout from your registered widget type, or you can override with the layout prop:
Pick a layout explicitly
Compose a layout with your own data
StarTiles, RatingBar, EthioReviewLogo), and legacy list helpers (TestimonialCard, RatingSummary, ReviewList).
React embed guide → · Widget overview →
