mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
Feat: Add stateMachines param to the default Rive component
This commit is contained in:
committed by
Zachary Plata
parent
9abee34d12
commit
84d9730767
@@ -6,6 +6,7 @@ export type RiveProps = {
|
||||
src: string;
|
||||
artboard?: string;
|
||||
animations?: string | string[];
|
||||
stateMachines?: string | string[];
|
||||
layout?: Layout;
|
||||
useOffscreenRenderer?: boolean;
|
||||
};
|
||||
@@ -14,6 +15,7 @@ const Rive = ({
|
||||
src,
|
||||
artboard,
|
||||
animations,
|
||||
stateMachines,
|
||||
layout,
|
||||
useOffscreenRenderer = true,
|
||||
...rest
|
||||
@@ -23,6 +25,7 @@ const Rive = ({
|
||||
artboard,
|
||||
animations,
|
||||
layout,
|
||||
stateMachines,
|
||||
autoplay: true,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user