UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

1 lines 1.23 kB
define([], function() { return "import * as React from 'react';\r\nimport {\r\n Image,\r\n Label\r\n} from '../../../../index';\r\n\r\nexport class ImageDefaultExample extends React.Component<any, any> {\r\n public render() {\r\n return (\r\n <div>\r\n <Label>For all of the examples below, no imageFit property has been provided.</Label>\r\n <Label>Without a width or height specified, the frame will fit the image. The image will not be scaled.</Label>\r\n <Image src='http://placehold.it/350x150' />\r\n <br />\r\n <Label>If only a width is provided, the image will scale proportionally to fill that width.</Label>\r\n <Image src='http://placehold.it/350x150' width={ 600 } />\r\n <br />\r\n <Label>If only a height is provided, the image will scale proportionally to fill that height.</Label>\r\n <Image src='http://placehold.it/350x150' height={ 100 } />\r\n <br />\r\n <Label>If both width and height are provided, the image will be scaled to fit the frame. This may result in a distorted image.</Label>\r\n <Image src='http://placehold.it/350x150' width={ 100 } height={ 100 } />\r\n </div>\r\n );\r\n }\r\n}\r\n"; });