--- url: /reference/items/Figure/twig-api.md --- # Twig API ## Parameters :::tip Required parameters The [`src`](#src) parameter is required. ::: ### `src` * Type: `string` * Required Configures the `src` attribute of the image. ### `width` * Type: `number` * Default: `100` Configures the `width` attribute of the image and the components sizing. ### `height` * Type: `number` * Default: `100` Configures the `height` attribute of the image and the component sizing. ### `srcset` * Type: `string` Configures the `srcset` attribute of the image. ### `sizes` * Type: `string` Configures the `sizes` attribute of the image. ### `alt` * Type: `string` Configures the `alt` attribute of the image. ### `lazy` * Type: `boolean` * Default: `true` Configures the type of loading for the image. Defaults to `true` which requires the `Figure` JavaScript component to be loaded in your project. ### `lazy_fallback` * Type: `boolean` * Default: `false` Adds an image inside a `