office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
20 lines • 1 kB
JavaScript
import * as tslib_1 from "tslib";
// @codepen
import * as React from 'react';
import { BaseComponent } from 'office-ui-fabric-react/lib/Utilities';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { TooltipHost } from 'office-ui-fabric-react/lib/Tooltip';
var TooltipBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(TooltipBasicExample, _super);
function TooltipBasicExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
TooltipBasicExample.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(TooltipHost, { content: "This is the tooltip", id: "myID", calloutProps: { gapSpace: 0 } },
React.createElement(DefaultButton, { "aria-describedby": "myID" }, "Hover Over Me"))));
};
return TooltipBasicExample;
}(BaseComponent));
export { TooltipBasicExample };
//# sourceMappingURL=Tooltip.Basic.Example.js.map