
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 Rive checkbox that pairs a drawn check with orbiting crescents and flying crystal chips. It adds a small celebration to an ordinary binary choice.
Live Rive preview. Motion follows your reduced-motion preference.
Set sq-element type to checkbox and provide label, name, and an initial checked state as needed. Read checked from its change event and use the component's form value for form integration.
<script type="module" src="https://thesidequest.studio/elements/elements.js?v=20261128-library-rigging"></script>
<sq-element type="checkbox" checked></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 |
checked | true / false |
reducedMotion | true / false |
label | Editable label |
action | Increment to replay an effect |
Checking the control draws the check and releases the crystal accents; clearing it returns the box to its unchecked state. The Element view model exposes checked, disabled, and action so the host can control selection and replay feedback.
The web component provides a native checkbox, keyboard interaction, and a readable label. Reduced motion preserves the check state and removes the decorative particles; make the label describe the selected option.