Feat: Add stateMachines param to the default Rive component

This commit is contained in:
Zach Plata
2022-05-25 10:22:04 -05:00
committed by Zachary Plata
parent 9abee34d12
commit 84d9730767
2 changed files with 5 additions and 1 deletions

View File

@@ -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,
};