gliff
v0.0.12
Published
React components for Gliff, including Icons and Lottie animations.
Maintainers
Readme
Gliff
React components for Gliff, including Icons and Lottie animations.
Installation
npm install gliffEnsure you have the required peer dependencies installed:
npm install react react-domUsage
Icon
import { Icon } from 'gliff';
function App() {
return (
<Icon
code="f015"
type="solid"
size="medium"
onClick={() => console.log('clicked')}
/>
);
}Lottie
import { Lottie } from 'gliff';
function App() {
return (
<Lottie
src="/path/to/animation.json"
size="large"
autoPlay
loop
/>
);
}