Rating Component

Overview

A star rating with two modes. Display (default): average is a 0–10 score (TMDB-style), rendered as 5 stars with halves; count is the number of ratings. Interactive (below): a form control you can click/keyboard to set a value.

★★★★☆
4.3 (1240)
★★★★★
5.0 (512)
★★★☆☆
2.5 (88)
★★☆☆☆
1.5 (17)
☆☆☆☆☆
0.0 (0)

Interactive

Pass interactive and bind:value to let the user pick a rating — click a star, hover to preview, or focus and use ←/→ (Home/End). Add allowHalf for half-star precision.

★★★☆☆
3.0
value = 3
★★★★☆
3.5
half-steps · value = 3.5
★★★★☆
disabled

Variants

★★★★★
4.5 (100)
neutral
★★★★★
4.5 (100)
primary
★★★★★
4.5 (100)
secondary
★★★★★
4.5 (100)
success
★★★★★
4.5 (100)
info
★★★★★
4.5 (100)
warning
★★★★★
4.5 (100)
danger
★★★★★
4.5 (100)
ghost

variant tints the filled stars (default gold).

Sizes

★★★★★
4.5 (100)
sm
★★★★★
4.5 (100)
md
★★★★★
4.5 (100)
lg

In context

Product rating

★★★★★
4.5 (127)

Service quality

★★★★☆
3.7 (56)