Data Display
Image
client29 kB
@stellaria/nebula-webImagePropsPreview
Props
9| Prop | Type | Default |
|---|---|---|
alt required | string | — |
className | string | — |
fallback | ReactNode | — |
fit | ImageFit | "cover" |
height | Unit | "auto" |
loading | "eager" | "lazy" | "lazy" |
placeholder | ReactNode | — |
src | string | — |
width | Unit | "100%" |
Slot props
1Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
stateProps The state slot. It is shared by TWO cases: the placeholder while loading and the fallback text when `src` fails or is missing. The image has no slot: motion animates it as it appears, and its fit, radius and size are already props. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 128