
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 three-tab Rive selector with a raised active tab that stretches, travels, and lands with a puff. The included labels are Home, Profile, and Settings.
Live Rive preview. Motion follows your reduced-motion preference.
Set sq-element type to tabs, give the tab list a label, and set value to 0, 1, or 2. Use change events to show the matching host content and establish the tab-to-panel relationships.
<script type="module" src="https://thesidequest.studio/elements/elements.js?v=20261128-library-rigging"></script>
<sq-element type="tabs"></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 | Zero-based selected tab index |
reducedMotion | true / false |
label | Editable label |
action | Increment to replay an effect |
options | Two to five labels separated by newlines |
Changing Element.value between 0 and 2 moves the active tab with a spring and a landing accent. The web component tracks selection for Home, Profile, and Settings. Your application supplies the associated panels or navigation behavior.
The web component supplies tablist and tab roles, aria-selected, a single selected tab stop, and Arrow, Home, and End key handling. Connect each tab to its actual content panel in the host application; reduced motion selects the tab without the travel effects.