Skip to content

Commit 0984bbc

Browse files
committed
add doc to image media component
1 parent 9bc11a9 commit 0984bbc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • web/client/components/geostory/media

web/client/components/geostory/media/Image.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ import Lightbox from 'react-image-lightbox';
1111
import objectFitImages from 'object-fit-images';
1212
import { withState } from 'recompose';
1313

14+
/**
15+
* Image media component
16+
* @class
17+
* @name Image
18+
* @prop {string} src source of the image
19+
* @prop {string} fit one of 'cover' or 'contain'
20+
* @prop {boolean} enableFullscreen enable fullscreen preview with pan and zoom options
21+
*/
22+
1423
class Image extends Component {
1524

1625
static propTypes = {

0 commit comments

Comments
 (0)