- Android
- iOS
- Web
Image
Render a local or remote image with a text alternative.
Engine API NImagenayan-ui/components
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| src | string | Optional | |
| alt | string | Optional | |
| fallbackSource | NImageSource | Optional | |
| width | number | Optional | |
| height | number | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| loading | "eager" | "lazy" | Optional | |
| source | NImageSource | Optional | |
| contentFit | "fill" | "cover" | "contain" | "none" | "scale-down" | Optional | |
| onLoad | ((event: NImageLoadEvent) => void) | Optional | |
| onError | ((event: NImageErrorEvent) => void) | Optional |