. This allows you to pass props to the container element.
```
--------------------------------
### Accessing Lottie Interaction Methods via Ref
Source: https://github.com/gamote/lottie-react/blob/main/docs/components/Lottie/README.mdx
Shows how to create a React ref object using `useRef` and pass it to the `lottieRef` prop of the Lottie component. This ref will store the interaction methods for programmatic control.
```jsx
import Lottie from "lottie-react";
import groovyWalkAnimation from "./groovyWalk.json";
const Example = () => {
const lottieRef = useRef();
return ;
};
```
--------------------------------
### useLottieInteractivity Hook Return Value
Source: https://github.com/gamote/lottie-react/blob/main/docs/hooks/useLottieInteractivity/README.mdx
Describes the value returned by the `useLottieInteractivity` hook, which is a React element ready for rendering.
```APIDOC
Returns: React.Element
Description: You only need to render the returned value.
```
--------------------------------
### Lottie Component with HTML Props
Source: https://github.com/gamote/lottie-react/blob/main/docs/components/Lottie/README.mdx
Illustrates how to pass standard HTML attributes, such as `aria-labelledby`, directly to the Lottie component's underlying `div` container, as the component extends `React.HTMLProps`.
```jsx
import Lottie from "lottie-react";
import groovyWalkAnimation from "./groovyWalk.json";
const Example = () =>
};
```
--------------------------------
### Basic Lottie Interactivity with Scroll Mode
Source: https://github.com/gamote/lottie-react/blob/main/docs/hooks/useLottieInteractivity/README.mdx
Demonstrates how to use the `useLottieInteractivity` hook in a React component to control a Lottie animation based on scroll visibility. It configures the animation to seek frames 0 to 38 when the component is 40% to 90% visible in the viewport.
```jsx
import { useLottie, useLottieInteractivity } from "lottie-react";
import likeButton from "./likeButton.json";
const style = {
height: 300,
border: 3,
borderStyle: "solid",
borderRadius: 7,
};
const options = {
animationData: likeButton,
};
const Example = () => {
const lottieObj = useLottie(options, style);
const Animation = useLottieInteractivity({
lottieObj,
mode: "scroll",
actions: [
{
visibility: [0.4, 0.9],
type: "seek",
frames: [0, 38],
},
],
});
return Animation;
};
export default Example;
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.