import * as React from 'react'; import { Image, IImageProps, ImageFit } from 'office-ui-fabric-react/lib/Image'; import { Label } from 'office-ui-fabric-react/lib/Label'; export const ImageCenterExample = () => { const imageProps: IImageProps = { src: 'http://placehold.it/800x300', imageFit: ImageFit.center, width: 350, height: 150, onLoad: ev => console.log('image loaded', ev), }; return (

Setting the imageFit property to "center" behaves the same as "none", while centering the image within the frame.

Example of the image fit value "center" on an image larger than the frame.
Example of the image fit value "center" on an image smaller than the frame.
); };