react-award
Version:
React component for rewarding users
19 lines (18 loc) • 591 B
TypeScript
import { CSSProperties } from 'react';
import { LottiePlayer } from 'lottie-web';
export interface PlayerProps {
lottie: LottiePlayer;
play: boolean;
animation: any;
segments?: [number, number];
speed?: number;
className?: string;
style?: CSSProperties;
onLoad?: () => any;
onComplete?: () => any;
}
/**
* A wrapper for the Lottie player that simplifies the event that is triggered when loading,
* and allows you to play or stop the animation in a declarative way.
*/
export declare const Player: (props: PlayerProps) => JSX.Element;