Ballmac UI home

Reviews 2: ratings with insights

Reviews with the whole picture: the average and the shape of the ratings (which filter the list), what people keep mentioning, and whether the mood is positive. The list follows the star size you choose.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/reviews-2

Usage

Example: reviews-2-demo.tsx
"use client"

import { Reviews2 } from "@/components/ballmac/blocks/reviews-2/reviews-2"

export default function Reviews2Demo() {
  return <Reviews2 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton summary, list and side panels under the real heading, announced as loading.

    state="loading"
  • No reviews yet

    Says there are no reviews yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry).

    state="error"

Dependencies

Use with AI

Reviews with insights. <Reviews2 title description reviews={[{ id, author, rating, date, title, body, verified?, helpful? }]} counts themes={BarListItem[]} sentiment={SplitSegment[]} />. Counts default to the reviews given. Choosing a star size filters the list and the count is announced politely. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Reviews 2: ratings with insights (@ballmac/reviews-2) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A product or app page where reviews drive the decision
  • A review dashboard for the team

Not for

  • A scrolling quote wall for a landing page; use testimonials-1
  • Collecting a review; use a form

Registry JSON: https://ui.ballmac.com/r/reviews-2.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.