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 ImageMaximizeFrameExample = () => { const imageProps: IImageProps = { src: 'http://placehold.it/500x500', imageFit: ImageFit.cover, maximizeFrame: true, }; return (
Where the exact width and height of the image's frame is not known, such as when sizing an image as a percentage of its parent, you can use the "maximizeFrame" prop to expand the frame to fill the parent element.