office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 961 B
JavaScript
define([], function() { return "import * as React from 'react';\r\nimport {\r\n Image,\r\n IImageProps,\r\n ImageFit,\r\n Label\r\n} from '../../../../index';\r\n\r\nexport class ImageNoneExample extends React.Component<any, any> {\r\n public render() {\r\n let imageProps: IImageProps = {\r\n src: 'http://placehold.it/500x250',\r\n imageFit: ImageFit.none,\r\n width: 350,\r\n height: 150\r\n };\r\n\r\n return (\r\n <div>\r\n <Label>The image is larger than the frame, so it is cropped to fit. The image is positioned at the upper left of the frame.</Label>\r\n <Image { ...imageProps as any } />\r\n <br />\r\n <Label>The image is smaller than the frame, so there is empty space within the frame. The image is positioned at the upper left of the frame.</Label>\r\n <Image { ...imageProps as any } src='http://placehold.it/100x100' />\r\n </div>\r\n );\r\n }\r\n}\r\n"; });