enes

Hyperlink

The Hyperlink component is used to create clickable links that navigate to a specified URL. It follows Fluent UI design principles and ensures accessibility and smooth user interactions.

Usage

<script>
  import { Hyperlink } from 'fluentui-svelte';
</script>

<Hyperlink href="/">Go to Home</Hyperlink>

Disabled

Disables the hyperlink and prevents navigation.

Props

NameTypeDescription
hrefstringThe URL to navigate to when the link is clicked.
disabledbooleanDisables the hyperlink and prevents navigation.
childrenSnippetThe content of the hyperlink.
refHTMLAnchorElementA bindable reference to the underlying anchor element.
Element AttributesYou can use any valid HTML anchor attributes (e.g., target, rel, etc.).