diff --git a/api-generator/components/image.js b/api-generator/components/image.js
index 30e16eec64..9aa21628f0 100644
--- a/api-generator/components/image.js
+++ b/api-generator/components/image.js
@@ -12,10 +12,10 @@ const ImageProps = [
description: 'Specifies the path to the image.'
},
{
- name: 'previewSrc',
+ name: 'zoomSrc',
type: 'string',
default: 'null',
- description: 'Preview image that may be different than "src" image.'
+ description: 'Zoomed image that may be different than "src" image.'
},
{
name: 'downloadable',
diff --git a/components/doc/image/index.js b/components/doc/image/index.js
index e378942600..781680da28 100644
--- a/components/doc/image/index.js
+++ b/components/doc/image/index.js
@@ -27,7 +27,7 @@ export class ImageDemo extends Component {
Thumbnail
-
+
)
}
@@ -52,7 +52,7 @@ const ImageDemo = () => {
Thumbnail
-
+
)
@@ -77,7 +77,7 @@ const ImageDemo = () => {
Thumbnail
-
+
)
@@ -105,7 +105,7 @@ const ImageDemo = () => {
Thumbnail
-
+
)
@@ -149,7 +149,7 @@ import { Image } from 'primereact/image';
Thumbnail
- Allow different images or sizes for source and preview images using previewSrc property.
+ Allow different images or sizes for source and preview images using zoomSrc property.
Templating
@@ -189,10 +189,10 @@ import { Image } from 'primereact/image';
Controls the preview functionality. |
- previewSrc |
+ zoomSrc |
string |
null |
- Preview image that may be different than "src" image. |
+ Zoomed image that may be different than "src" image. |
downloadable |
diff --git a/components/lib/image/Image.js b/components/lib/image/Image.js
index a9902de6f2..95f6099b5d 100644
--- a/components/lib/image/Image.js
+++ b/components/lib/image/Image.js
@@ -148,7 +148,7 @@ export const Image = React.memo(
onExited={onExited}
>
-
+
@@ -194,7 +194,7 @@ Image.defaultProps = {
imageStyle: null,
onError: null,
preview: false,
- previewSrc: null,
+ zoomSrc: null,
src: null,
template: null,
width: null
diff --git a/components/lib/image/image.d.ts b/components/lib/image/image.d.ts
index fa2167938a..d94bd4932e 100644
--- a/components/lib/image/image.d.ts
+++ b/components/lib/image/image.d.ts
@@ -8,7 +8,7 @@ export interface ImageProps extends Omit {
Thumbnail
-
+