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

26 lines
409 B
Markdown
Raw Normal View History

`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 />`.