office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 738 B
JavaScript
define([], function() { return "import * as React from 'react';\r\nimport {\r\n Link\r\n} from '../../../../index';\r\n\r\nexport class LinkBasicExample extends React.Component<any, any> {\r\n public render() {\r\n return (\r\n <div>\r\n <span>When a link has an href, </span>\r\n <Link href='http://dev.office.com/fabric/components/link'>it renders as an anchor tag.</Link>\r\n <span> Without an href, </span>\r\n <Link>the link is rendered as a button</Link>.\r\n <span> You can also use the disabled attribute to create a </span>\r\n <Link disabled={ true } href='http://dev.office.com/fabric/components/link'>disabled link</Link>.\r\n </div>\r\n );\r\n }\r\n\r\n}\r\n"; });