0.0s / 0.0s
Sample Usage
Integrate the check color icon in your project in seconds.
1kwimport { kwuseEffect, kwuseState } kwfrom "react";2kwimport Lottie kwfrom "lottie-react";34kwexport default kwfunction checkcolor() {5 kwconst [data, setData] = kwuseState(kwnull);67 kwuseEffect(() => {8 fetch("http://alienicons.com/media/lottie/system-regular-8-account-hover-pinch.json")9 .then(r => r.json())10 .then(setData);11 }, []);1213 kwreturn data ? (14 <Lottie15 animationData={data}16 kwloop={kwtrue}17 kwautoplay={kwtrue}18 kwstyle={{ width: 120, height: 120 }}19 />20 ) : kwnull;21}
Install dependency: npm install lottie-react