ArekUI
Docs

Rating

Read-only and interactive star ratings built on native radios.

Read-only: add ar-rating-readonly + disabled on inputs · JS listens for the ar-rating-change CustomEvent.

Interactive

Interactive (click stars)

Selected: 0

Read-only

Read-only (3 stars)

Options

NameType / valuesDefaultMeaning
data-ar-ratingattribute on the container—Marks the group the script listens to.
name / valuenative radio attributes—One name per rating; each input carries its score as value.
ar-rating-readonlyclass on the container—Drops the hover lift; pair it with disabled on the inputs.
ar-rating-changeCustomEvent, detail.value (0–5)—Fires on every change and bubbles.
ArekUI.getRating(container)method—Current score, 0 when nothing is selected.
ArekUI.setRating(container, value)method—Selects a star from script.