
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 two-option Rive radio control with a springing selection dot and a fan of wedges. It provides animated feedback for choosing one of two alternatives.
Live Rive preview. Motion follows your reduced-motion preference.
Use sq-element type radio with a unique name for the group and a value of 0 or 1. Connect change events to your application and adapt the host option labels when using it for a specific pair of choices.
<script type="module" src="https://thesidequest.studio/elements/elements.js?v=20261128-library-rigging"></script>
<sq-element type="radio" value="0"></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–1 |
reducedMotion | true / false |
label | Editable label |
action | Increment to replay an effect |
options | Two labels separated by a newline |
The selected dot springs into place with a hollow pop and wedge accents. Set Element.value to 0 or 1 to choose between the two positions. The included web component presents the fixed option labels Option A and Option B.
The web component uses two native radio inputs with a shared group name and accessible option labels. Reduced motion moves directly to the chosen state; provide surrounding context that explains what the two options mean.