Components

BaseRating

A read-only star rating with half stars.

components/ui/BaseRating.vue
View in the demo

Example

API

Props

Name
Type
Default
Description
value
required
number—The rating.
lengthnumber5Number of stars.
size"default" | "small" | "x-small""default"default, small or x-small.
half-incrementsbooleantrueRounds to half stars instead of whole ones.

Accessibility

It renders as an image with the rating in its accessible name, such as “4.5 out of 5”.

© 2026 melsami UI.
Developer documentation for melsami UI.