|
|
|
@ -0,0 +1,28 @@ |
|
|
|
|
@page "/compoanchor" |
|
|
|
|
|
|
|
|
|
@rendermode RenderMode.InteractiveServer |
|
|
|
|
|
|
|
|
|
<FluentLabel Typo="Typography.H3">Anchor</FluentLabel> |
|
|
|
|
<FluentDivider class="mt-1 mb-3" Role="DividerRole.Separator" /> |
|
|
|
|
The <code>FluentAnchor</code> wraps a web component of a <code>anchor</code> element. |
|
|
|
|
The <code>FluentAnchor</code> component supports the same visual appearances as the <code>FluentButton</code> component as well as a hypertext appearance. |
|
|
|
|
|
|
|
|
|
<FluentLabel class="my-3" Typo="Typography.H4">Default Example</FluentLabel> |
|
|
|
|
<FluentCard Class="mt-3" Width="auto" Height="auto" AreaRestricted="false"> |
|
|
|
|
<p>Default</p> |
|
|
|
|
<FluentAnchor Href="#" title="Anchor tooltip">Anchor</FluentAnchor> |
|
|
|
|
|
|
|
|
|
<p>With target</p> |
|
|
|
|
<FluentAnchor Href="https://www.fluentui-blazor.net/" Target="_blank">Fluent UI Blazor</FluentAnchor> |
|
|
|
|
|
|
|
|
|
<p>With custom action</p> |
|
|
|
|
<FluentAnchor Href="#" Appearance="Appearance.Hypertext" |
|
|
|
|
OnClick="@(() => message = "Anchor clicked!")"> |
|
|
|
|
Custom Action |
|
|
|
|
</FluentAnchor> |
|
|
|
|
<p><b>Message</b>: @message</p> |
|
|
|
|
</FluentCard> |
|
|
|
|
|
|
|
|
|
@code { |
|
|
|
|
string? message; |
|
|
|
|
} |