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 ImageCoverExample = () => { const imageProps: IImageProps = { src: 'http://placehold.it/500x500', imageFit: ImageFit.cover, }; return (
Setting the imageFit property to "cover" will cause the image to scale up or down proportionally, while cropping from either the top and bottom or sides to completely fill the frame.