Image
A component to display graphical elements.
It is the native img
element in the browser, which means you can pass in any props supported by the browser.
Props
Prop | Type | Default | Description |
---|---|---|---|
name | String |
| File name (required if |
dir | String | Directory path to the file (without file name) if | |
src | String | Image file source URL or full file path (takes priority over file | |
alt | String | Alternative text description of the image (auto generated from file | |
loading | Enum |
| |
decoding | Enum |
| |
className | Class Name | CSS class names separated by space |
Examples
Using file `name` relative to `/static/images/` folder
Using `src` attribute
Custom Image Style