UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

27 lines 1.07 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Separator } from '../Separator'; import { createTheme } from 'office-ui-fabric-react'; var theme = createTheme({ fonts: { medium: { fontFamily: 'Monaco, Menlo, Consolas', fontSize: '30px' } } }); var SeparatorThemingExample = /** @class */ (function (_super) { tslib_1.__extends(SeparatorThemingExample, _super); function SeparatorThemingExample() { return _super !== null && _super.apply(this, arguments) || this; } SeparatorThemingExample.prototype.render = function () { var message = 'Today'; return (React.createElement("div", null, React.createElement("p", null, "Horizontal center aligned with custom theme"), React.createElement(Separator, { text: message, alignText: "center", theme: theme }))); }; return SeparatorThemingExample; }(React.Component)); export { SeparatorThemingExample }; //# sourceMappingURL=Separator.Theming.Example.js.map