0.0s / 0.0s
Sample Usage
Integrate the Arrow Up SM icon in your project in seconds.
1kwimport { kwuseEffect, kwuseState } kwfrom "react";2kwimport Lottie kwfrom "lottie-react";34kwexport default kwfunction ArrowUpSM() {5 kwconst [data, setData] = kwuseState(kwnull);67 kwuseEffect(() => {8 fetch("http://alienicons.com/media/lottie/Arrow_Up_SM.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