|
Download wp-calypso/client/components/animated-icon/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/animated-icon/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/animated-icon/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/animated-icon/README.md
808 Bytes
Animated Icon
<AnimatedIcon /> is a component that enables the rendering of an Adobe After Effects animation.
The component imports the Lottie library, which parses Adobe After Effects animations that have been exported as json with Bodymovin.
Usage
Pass with an icon string to the animation's path:
import AnimatedIcon from 'calypso/components/animated-icon';
function render() {
return (
<AnimatedIcon
icon="/calypso/animations/app-promo/wp-to-jp.json"
className="example-component__icon"
/>
);
}
Props
icon
- Type:
String - Required:
yes
The path to the animated icon.
className
- Type:
String - Required:
no
The values of any additional CSS classes to apply to the icon's wrapper element.