"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImageMaximizeFrameExample = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var Image_1 = require("@fluentui/react/lib-commonjs/Image");
// These props are defined up here so they can easily be applied to multiple Images.
// Normally specifying them inline would be fine.
var imageProps = {
    maximizeFrame: true,
    imageFit: Image_1.ImageFit.cover,
    src: 'http://via.placeholder.com/500x500',
    // Show a border around the image (just for demonstration purposes)
    styles: function (props) { return ({ root: { border: '1px solid ' + props.theme.palette.neutralSecondary } }); },
};
var ImageMaximizeFrameExample = function () {
    return (React.createElement("div", null,
        React.createElement("p", null,
            "Where the exact width or 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 ",
            React.createElement("code", null, "maximizeFrame"),
            " prop to expand the frame to fill the parent element."),
        React.createElement("p", null, "This image is placed within a landscape container."),
        React.createElement("div", { style: { width: '200px', height: '100px' } },
            React.createElement(Image_1.Image, tslib_1.__assign({}, imageProps, { alt: "Example of the maximizeFrame property with a landscape container." }))),
        React.createElement("p", null, "This image is placed within a portrait container."),
        React.createElement("div", { style: { width: '100px', height: '200px' } },
            React.createElement(Image_1.Image, tslib_1.__assign({}, imageProps, { alt: "Example of the maximizeFrame property with a portrait container" })))));
};
exports.ImageMaximizeFrameExample = ImageMaximizeFrameExample;
//# sourceMappingURL=Image.MaximizeFrame.Example.js.map