--- url: /reference/items/FigureShopify.md --- # FigureShopify Use the `FigureShopify` component to display responsive images with [Shopify CDN `image_url` API](https://shopify.dev/docs/api/liquid/filters/image_url). ## Usage Register the component in your JavaScript app and use it in your templates. The component will transform the `data-src` URL to load an image at the dimension of the `` DOM element. A component mounts on its configured name, and the Liquid markup below writes `data-component="Figure"`, so declare that name on a subclass: ```js import { registerComponent } from '@studiometa/js-toolkit'; import { FigureShopify } from '@studiometa/ui'; class Figure extends FigureShopify { static config = { name: 'Figure', }; } registerComponent(Figure); ``` ```liquid
```