UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

32 lines 1.62 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Shimmer } from 'office-ui-fabric-react/lib/Shimmer'; import * as ShimmerExampleStyles from './Shimmer.Example.scss'; var ShimmerStylingExample = /** @class */ (function (_super) { tslib_1.__extends(ShimmerStylingExample, _super); function ShimmerStylingExample(props) { var _this = _super.call(this, props) || this; _this._getShimmerStyles = function (props) { return { shimmerWrapper: [ { backgroundColor: '#deecf9', backgroundImage: 'linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #c7e0f4 50%, rgba(255, 255, 255, 0) 100%)' } ] }; }; return _this; } ShimmerStylingExample.prototype.render = function () { return (React.createElement("div", { className: ShimmerExampleStyles.shimmerExampleContainer }, React.createElement(Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer, { width: '75%', styles: this._getShimmerStyles }))); }; return ShimmerStylingExample; }(React.Component)); export { ShimmerStylingExample }; //# sourceMappingURL=Shimmer.Styling.Example.js.map