Anchor

The Anchor component provides navigation links with FluentUI styling.

Import

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

Basic Usage

<Anchor href="/about">About Us</Anchor>
svelte

External Link

<Anchor href="https://example.com" target="_blank">External Link</Anchor>
svelte

Disabled Link

<Anchor disabled>Disabled Link</Anchor>
svelte

Properties

PropertyTypeDefaultDescription
hrefstringundefinedLink URL
targetstringundefinedLink target (_blank, _self, etc.)
disabledbooleanfalseWhether the link is disabled

Events

EventDescription
on:clickFired when the link is clicked