office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
39 lines • 1.67 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { VerticalDivider } from 'office-ui-fabric-react/lib/Divider';
import { mergeStyleSets } from 'office-ui-fabric-react/lib/Styling';
import { memoizeFunction } from 'office-ui-fabric-react/lib/Utilities';
var getExampleClassNames = memoizeFunction(function () {
var exampleHeight = 40;
return mergeStyleSets({
wrapper: {
height: 40,
backgroundColor: '#F4F4F4',
padding: '0 10px'
},
text: {
display: 'inline-block',
padding: '0 8px',
height: exampleHeight,
lineHeight: exampleHeight,
verticalAlign: 'top',
margin: 'auto'
}
});
});
var VerticalDividerBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(VerticalDividerBasicExample, _super);
function VerticalDividerBasicExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
VerticalDividerBasicExample.prototype.render = function () {
var classNames = getExampleClassNames();
return (React.createElement("div", { className: classNames.wrapper },
React.createElement("p", { className: classNames.text }, " Some text before the divider. "),
React.createElement(VerticalDivider, null),
React.createElement("p", { className: classNames.text }, "Some text after the divider. ")));
};
return VerticalDividerBasicExample;
}(React.Component));
export { VerticalDividerBasicExample };
//# sourceMappingURL=VerticalDivider.Basic.Example.js.map