office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 1.16 kB
JavaScript
module.exports = "import * as React from 'react';\nimport {\n Image,\n Label\n} from '../../../../index';\n\nexport class ImageDefaultExample extends React.Component<any, any> {\n public render() {\n return (\n <div>\n <Label>For all of the examples below, no imageFit property has been provided.</Label>\n <Label>Without a width or height specified, the frame will fit the image. The image will not be scaled.</Label>\n <Image src='http://placehold.it/350x150' />\n <br />\n <Label>If only a width is provided, the image will scale proportionally to fill that width.</Label>\n <Image src='http://placehold.it/350x150' width={ 600 } />\n <br />\n <Label>If only a height is provided, the image will scale proportionally to fill that height.</Label>\n <Image src='http://placehold.it/350x150' height={ 100 } />\n <br />\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>\n <Image src='http://placehold.it/350x150' width={ 100 } height={ 100 } />\n </div>\n );\n }\n}\n";