@dxos/react-ui
    Preparing search index...
    ImageProps: ThemedClassName<
        Omit<ComponentPropsWithoutRef<"div">, "children" | "onLoad" | "onError">,
    > & ImageElementProps & {
        alt: string;
        aspectRatio?: string;
        backdrop?: "dominant";
        fit?: "cover" | "contain";
    }

    Type declaration

    • alt: string

      Required: also names the fallback icon when the image fails to load.

    • OptionalaspectRatio?: string

      CSS aspect-ratio of the frame.

    • Optionalbackdrop?: "dominant"

      dominant fills the frame behind a loaded image (the letterbox of contain) with the colour of its corners; an image whose pixels cannot be read (cross-origin without crossOrigin and CORS) leaves the host surface.

    • Optionalfit?: "cover" | "contain"