--- url: /reference/items/FigureVideo/js-api.md --- # JS API The `FigureVideo` component extends the [`Transition` primitive](/reference/items/Transition/) and implements the [`withMountWhenInView` decorator](https://js-toolkit.studiometa.dev/api/decorators/withMountWhenInView.html). It inherits their respective APIs. See both linked references. ## Options ### `lazy` * Type: `boolean` * Default: `false` Enables lazy loading. The source is read from the `data-src` attribute of the [`video` ref](#video)'s sources. ## Refs ### `video` * Type: `HTMLVideoElement` The `FigureVideo` component should have a ref corresponding to its inner `