office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
24 lines • 1.5 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Link", "./Link.Example.scss"], function (require, exports, tslib_1, React, Link_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LinkBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(LinkBasicExample, _super);
function LinkBasicExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
LinkBasicExample.prototype.render = function () {
return (React.createElement("div", { className: "docs-LinkExample" },
React.createElement("span", null, "When a link has an href, "),
React.createElement(Link_1.Link, { href: "http://dev.office.com/fabric/components/link" }, "it renders as an anchor tag."),
React.createElement("span", null, " Without an href, "),
React.createElement(Link_1.Link, null, "the link is rendered as a button"),
".",
React.createElement("span", null, " You can also use the disabled attribute to create a "),
React.createElement(Link_1.Link, { disabled: true, href: "http://dev.office.com/fabric/components/link" }, "disabled link"),
"."));
};
return LinkBasicExample;
}(React.Component));
exports.LinkBasicExample = LinkBasicExample;
});
//# sourceMappingURL=Link.Basic.Example.js.map