# BaseImage
Component to render an image and optional lazy-loading
# Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
alt | set alt attribute | string | - | '' |
lazyload | specify lazy image loading | boolean | - | false |
src | set src attribute | string | - | '' |
srcset | set srcSet attributestructure: [{ '640w': 'path' }] | array | - | [] |
# Events
Event name | Properties | Description |
---|---|---|
error | undefined ErrorEvent - the native <img> error event |
# Demo
← BaseIcon BaseImageBox →