Image API
API reference for the Image components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Image | Semantic |
| useImage | System |
| Avatar | Semantic |
| useIntersectionObserver | System |
Image.Root
Props
rootMargin
string | undefinedIntersectionObserver root margin. Only used when lazy is true.
Default: "0px"
threshold
number | number[] | undefinedIntersectionObserver threshold(s). A number or array of numbers between 0.0 and 1.0 indicating the percentage of the target's visibility required to trigger the observer. Only used when lazy is true.
Default: 0
root
Element | null | undefinedIntersectionObserver root element. If omitted, the viewport is used. Pass a scroll container to observe intersections relative to it instead. Only used when lazy is true.
Default: null
Slots
default
ImageRootSlotPropsImage.Fallback
Props
Slots
default
ImageFallbackSlotPropsImage.Img
Props
decoding
"sync" | "async" | "auto" | undefinedHow the browser should decode the image.
Default: "async"
Events
Slots
default
ImageImgSlotPropsImage.Placeholder
Props
Slots
default
ImagePlaceholderSlotProps