rive-interactive

Wire Rive state machine inputs and ViewModel properties to React components.

Updated May 7, 2026
One-click install
npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill rive-interactive-tumeloramaphosa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rive-interactive
Source: https://github.com/TumeloRamaphosa/StudEx-Valley-OS/tree/main/.claude/skills/claudedesignskills/plugins/bundles/authoring-motion/skills/rive-interactive
Command: npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill rive-interactive-tumeloramaphosa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps you turn designer-made Rive files into interactive, state-driven animations that respond to user input and application data, removing the friction of wiring animation logic into your UI.

Core Features & Use Cases

  • State machine control: Drive animation states (idle/hover/pressed/etc.) using boolean, number, and trigger inputs.
  • ViewModel data binding: Bind strings, numbers, colors, enums, and triggers so animation visuals stay synchronized with live app state.
  • Event-driven integration: Handle custom Rive events so animation outcomes can trigger code behavior (analytics, navigation, UI updates).
  • Web/React integration patterns: Integrate smoothly with React via rive-react, including preloading, responsive layout, and performance optimizations.
  • When to use: Interactive UI components (toggles/loaders), animated dashboards, game-like interfaces, and designer-authored animations needing runtime control.

Quick Start

Use the rive-interactive skill to integrate a Rive state machine into your React component and wire inputs so the animation changes on hover and click for the file button.riv.

Frequently Asked Questions about rive-interactive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bind React state to Rive interactive animations?

rive-react hooks like useRive and useStateMachineInput connect Rive state machine inputs to React components. Boolean, number, and trigger inputs drive animation states while guarded null checks ensure reliable event listener attachment.

What is a Rive state machine and when do I need it for UI microinteractions?

A Rive state machine controls interactive vector animation states like idle, hover, and pressed using boolean, number, and trigger inputs. You need it when building input-reactive UI components, data-bound dashboards, or scroll-triggered animations requiring runtime control.

How do I handle Rive custom events in a React application?

Handle Rive custom events in a React application by attaching reliable event listeners through rive-react integration patterns. This allows animation outcomes to trigger code behavior like analytics tracking, navigation, or UI updates.

Can I use rive-react for scroll-triggered animation in data-bound dashboards?

Yes, rive-react supports scroll-triggered animation and data-bound dashboards by binding ViewModel properties to live application state. It includes preloading, responsive layout, and performance optimizations for smooth web integration.

Why are my Rive state machine inputs null when using useStateMachineInput?

Rive state machine inputs can return null before the file fully loads. Guarded null checks for inputs are required when using useStateMachineInput to prevent runtime errors during event listener attachment and ViewModel binding.

Does interactive Rive animation require rive-react setup for event-to-action flows?

Yes, event-to-action flows in interactive Rive animations require rive-react setup to wire custom events to application code. This enables state machine control and ViewModel data binding for React web UI tasks.