
UI controls · 485 KB
Secondary button
A lighter press, a quick rebound, and three quiet accent wedges.
Customize, download & embed ↗FREE RIVE DOWNLOAD · UI CONTROLS
An animated Rive button with a deep squash, a held impact, and rolling smoke. Use it to give a primary action a playful sense of weight.
Live Rive preview. Motion follows your reduced-motion preference.
Set sq-element type to button and provide a label. Handle sq-action to run your operation, then call done() after success; use button-type=submit when connecting it to a form.
<script type="module" src="https://thesidequest.studio/elements/elements.js?v=20261128-library-rigging"></script>
<sq-element type="button"></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 |
done | Call done() after success |
reducedMotion | true / false |
label | Editable label |
action | Increment to replay an effect |
Pressing the button compresses its shape; activation releases the impact and particle accents. The Element view model exposes pressed, disabled, label, and action, while done adds a separate success check. Your application decides when an operation has succeeded.
Use the included web component for its real button, keyboard activation, accessible label, and disabled state. System reduced motion removes the impact effects while retaining the button state; keep its label clear enough to explain the action.