# XWUIReviewRatingPanel

A product reviews and rating summary: a large average-rating figure with a 5→1 star histogram (bar length proportional to that bucket's share of reviews), a "Write a review" toggle that reveals a star-select + comment form, and the review list (author, star rating, date, comment).

## Events

| Event | Callback | Subscriber | `detail` |
|---|---|---|---|
| `xwui-review-rating-panel:submit-review` | `onSubmitReview` | `onSubmitReview(handler)` | `{ rating, comment }` |

## Usage

```ts
import { XWUIReviewRatingPanel } from '@exonware/xwui/industry';

const panel = new XWUIReviewRatingPanel(host, {
  reviews: [
    { id: 'r1', author: 'Amara O.', rating: 5, date: '2026-07-28', comment: 'Exactly as described.' },
  ],
});

panel.onSubmitReview((review) => api.postReview(review));
```

```api
```
