etudes 18.1.1 → 18.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,11 +15,11 @@ export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'loading
|
|
|
15
15
|
loadingMode?: 'eager' | 'lazy';
|
|
16
16
|
/**
|
|
17
17
|
* Optional image source. If provided, this will be used to set the `sizes`
|
|
18
|
-
* and `
|
|
18
|
+
* and `srcSet` attributes of the `<img>` element.
|
|
19
19
|
*/
|
|
20
20
|
source?: Omit<ImageSource, 'media' | 'type'>;
|
|
21
21
|
/**
|
|
22
|
-
* Fallback image URL for browsers that do not support the `
|
|
22
|
+
* Fallback image URL for browsers that do not support the `srcSet` attribute.
|
|
23
23
|
*/
|
|
24
24
|
src?: string;
|
|
25
25
|
/**
|
|
@@ -42,7 +42,7 @@ export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'loading
|
|
|
42
42
|
onSizeChange?: (size?: Size) => void;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* A component that renders an image with support for lazy loading, `
|
|
45
|
+
* A component that renders an image with support for lazy loading, `srcSet`,
|
|
46
46
|
* and `sizes` attributes.
|
|
47
47
|
*/
|
|
48
48
|
export declare const Image: import('react').ForwardRefExoticComponent<Readonly<ImageProps> & import('react').RefAttributes<HTMLImageElement>>;
|