
UI controls · 486 KB
Impact button
Squash, a held impact frame, rolling smoke, and a big finish.
Customize, download & embed ↗FREE RIVE DOWNLOAD · UI CONTROLS
A five-star Rive rating input whose stars spring into place one by one. Choosing all five stars adds a larger burst.
Live Rive preview. Motion follows your reduced-motion preference.
Set sq-element type to rating, provide a label, and start value at 0 or an existing rating. Handle change to save the selected value or include it in your form flow.
<script type="module" src="https://thesidequest.studio/elements/elements.js?v=20261128-library-rigging"></script>
<sq-element type="rating" value="5"></sq-element>Connect public properties through the view model, or use the web component’s attributes and methods. The integration guides explain embedding, dynamic text, accessibility, and self-hosting.
| Property | Meaning |
|---|---|
State machine / view model | Element |
value | 0 through maximum |
reducedMotion | true / false |
label | Editable label |
action | Increment to replay an effect |
maximum | Number of stars, 1–10; default 5 |
Element.value selects a rating from 0 to 5, with 0 representing an empty state. Selected stars animate into place, and a value of 5 triggers the extra burst. The web component reports a user's selection without submitting or storing a review itself.
The web component exposes a radiogroup with five named star choices, selected state, and Arrow, Home, and End key controls. Give the group a label that names what is being rated; reduced motion keeps the chosen stars visible without their spring effects.