import * as React from 'react'; import { Link, Text } from '@fluentui/react'; export const LinkBasicExample: React.FunctionComponent = () => { return (
When a link has an href,{' '} it renders as an anchor tag. {' '} Without an href,{' '} the link is rendered as a button . You can also use the disabled attribute to create a{' '} disabled link. It's not recommended to use Links with imgs because Links are meant to render textual inline content. Buttons are inline-block or in the case of imgs, block. However, it is possible to create a linked image button by making a button with an unstyled variant and adding the img content and href source to that.
); }; function handleClickOnLink(ev: React.MouseEvent) { window.alert('clicked on Link component which is rendered as html button'); }