import { IImageProps, Image, ImageFit } from 'office-ui-fabric-react/lib/Image'; import { Label } from 'office-ui-fabric-react/lib/Label'; import * as React from 'react'; export const ImageCenterCoverExample = () => { const imageProps: Partial = { imageFit: ImageFit.centerCover, width: 200, height: 200, }; return (

Setting the imageFit property to "centerCover" will cause the image to scale up or down proportionally. Images smaller than their frame will be rendered as "ImageFit.center", while images larger than both the frame's height and width will render as "ImageFit.cover".

Example of the image fit value "centerCover" on an image smaller than the frame.
Example of the image fit value "centerCover" on an image wider than the frame.
Example of the image fit value "centerCover" on an image taller than the frame.
Example of the image fit value "centerCover" on an image taller and wider than the frame.
Example of the image fit value "centerCover" on an image taller and wider than the frame.
); };