fndn/ui

Components

Rating

Beta

A score out of a few stars, which can be set or only shown.

Details

A score out of a few stars, optionally in halves. Hovering previews the score, a click sets it; it can also only show a score (readOnly). Stars are filled in ink over line-strong ones (md 24px cells with 20px stars, sm 18px with 14px: the switch's heights). It is a radio group: one tab stop, arrow keys change the score. Behaviour by Ark UI's rating-group (Zag). Controlled or uncontrolled.

Behaviour from Ark UI, the rating-group machine of Zag.