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.
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.
value = 3
half-steps · value = 3.5
disabled
Variants
neutral
primary
secondary
success
info
warning
danger
ghost
variant tints the filled stars (default gold).
Sizes
sm
md
lg