Skip to content
Data Display

Image

client29 kB
@stellaria/nebula-webImageProps

Preview

Props

9
PropTypeDefault

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

1

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

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