JS API
The Figure component extends the Transition primitive and implements the withMountWhenInView decorator. 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 img ref.
Refs
img
- Type:
HTMLImageElement
The Figure component should have a ref corresponding to its inner <img /> element.