UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

40 lines 1.88 kB
define(["require", "exports", "tslib", "react", "office-ui-fabric-react"], function (require, exports, tslib_1, React, office_ui_fabric_react_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Styles definition var stackStyles = { root: { background: office_ui_fabric_react_1.DefaultPalette.themeTertiary } }; var stackItemStyles = { root: { alignItems: 'center', background: office_ui_fabric_react_1.DefaultPalette.themePrimary, color: office_ui_fabric_react_1.DefaultPalette.white, display: 'flex', height: 50, justifyContent: 'center' } }; // Tokens definition var stackTokens = { childrenGap: 5, padding: 10 }; var HorizontalStackGrowExample = /** @class */ (function (_super) { tslib_1.__extends(HorizontalStackGrowExample, _super); function HorizontalStackGrowExample() { return _super !== null && _super.apply(this, arguments) || this; } HorizontalStackGrowExample.prototype.render = function () { return (React.createElement(office_ui_fabric_react_1.Stack, { horizontal: true, styles: stackStyles, tokens: stackTokens }, React.createElement(office_ui_fabric_react_1.Stack.Item, { grow: 3, styles: stackItemStyles }, "Grow is 3"), React.createElement(office_ui_fabric_react_1.Stack.Item, { grow: 2, styles: stackItemStyles }, "Grow is 2"), React.createElement(office_ui_fabric_react_1.Stack.Item, { grow: true, styles: stackItemStyles }, "Grow is 1"))); }; return HorizontalStackGrowExample; }(React.Component)); exports.HorizontalStackGrowExample = HorizontalStackGrowExample; }); //# sourceMappingURL=Stack.Horizontal.Grow.Example.js.map