Image
A component to display images with lazy-load support.
Usage
import { RImg } from '@rebilly/revel';
<r-img src="https://placehold.co/25" />
Examples
Lazy load
Name | Type | Default | Description |
---|---|---|---|
src | string | Input the source URL | |
alt | string | 'Image' | Input the alternative text for the image |
lazy | boolean | false | Make the image lazy loaded |
width | string | '' | Image width |
height | string | '' | Image height |
Name | Description |
---|---|
loading | Overrides default loader |
Name | Description |
---|---|
onload | |
onerror |