UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

29 lines 1.19 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Separator } from 'office-ui-fabric-react/lib/Separator'; import { Stack } from 'office-ui-fabric-react/lib/Stack'; import { Text } from 'office-ui-fabric-react/lib/Text'; import { Icon } from 'office-ui-fabric-react/lib/Icon'; var iconStyles = { root: { fontSize: '24px', height: '24px', width: '24px' } }; var stackTokens = { childrenGap: 12 }; var SeparatorIconExample = /** @class */ (function (_super) { tslib_1.__extends(SeparatorIconExample, _super); function SeparatorIconExample() { return _super !== null && _super.apply(this, arguments) || this; } SeparatorIconExample.prototype.render = function () { return (React.createElement(Stack, { tokens: stackTokens }, React.createElement(Text, null, "Horizontal center aligned with an icon as content"), React.createElement(Separator, null, React.createElement(Icon, { iconName: "Clock", styles: iconStyles })))); }; return SeparatorIconExample; }(React.Component)); export { SeparatorIconExample }; //# sourceMappingURL=Separator.Icon.Example.js.map