woocommerce/plugins/woocommerce-admin/docs/components/image-asset.md

409 B

ImageAsset (component)

A component that loads an image, allowing images to be loaded relative to the main asset/plugin folder. Props are passed through to <img />

Props

src

  • Required
  • Type: String
  • Default: null

Image location to pass through to <img />.

alt

  • Required
  • Type: String
  • Default: null

Alt text to pass through to <img />.