Components

BaseRatingBreakdown

The distribution of ratings from 5 to 1 star, as bars with counts or percentages.

components/ui/BaseRatingBreakdown.vue
View in the demo

Example

  • 5 5 stars128
  • 4 4 stars46
  • 3 3 stars12
  • 2 2 stars4
  • 1 1 star2
  • 5 5 stars66.7%
  • 4 4 stars24%
  • 3 3 stars6.3%
  • 2 2 stars2.1%
  • 1 1 star1%

API

Props

Name
Type
Default
Description
counts
required
number[]—How many ratings each star received, from 5 down to 1.
display"percent" | "count""count"count or percent.
heightnumber8The bar height.
labelstring—The accessible name of the list.
© 2026 melsami UI.
Developer documentation for melsami UI.