export const Simple = () => (
<Rive
src="https://cdn.rive.app/animations/vehicles.riv"
artboard="Truck"
stateMachine="bumpy"
/>
);
// With `useRive` Hook:
export default function Simple() {
const { RiveComponent } = useRive({
src: 'https://cdn.rive.app/animations/vehicles.riv',
artboard: 'Truck',
stateMachine: 'bumpy',
autoplay: true,
});
return <RiveComponent />;
}