Git Product home page Git Product logo

Comments (6)

vnbaaij avatar vnbaaij commented on June 1, 2024 1

Or you can use https://www.fluentui-blazor.net/Anchor#appearance @dvoituron beat me to it...😂

from fast-blazor.

MarvinKlein1508 avatar MarvinKlein1508 commented on June 1, 2024

Nevermind. This can be achieved by wrapping the a tag aroudn the button like this

<a href="/Admin/Users/Edit">
    <FluentButton IconStart="@(new Icons.Regular.Size20.PersonAdd())"
                  Appearance="Appearance.Accent">

        New User
    </FluentButton>
</a>

from fast-blazor.

dvoituron avatar dvoituron commented on June 1, 2024

@MarvinKlein1508 You could also use FluentAnchor

<FluentAnchor Href="/Admin/Users/Edit"
              IconStart="@(new Icons.Regular.Size20.PersonAdd().WithColor(Color.Fill))"
              Appearance="Appearance.Accent">
    New User
</FluentAnchor>

from fast-blazor.

MarvinKlein1508 avatar MarvinKlein1508 commented on June 1, 2024

@dvoituron thanks for pointing this out to me. However there seems to be a difference in using the FluentAnchor over the FluentButton.

Take a look on this:

grafik

code:

<FluentAnchor Href="/Admin/Users/Edit" Appearance="Appearance.Accent" IconStart="@(new Icons.Regular.Size20.PersonAdd())">
    Neuer Benutzer
</FluentAnchor>
<a href="/Admin/Users/Edit">
    <FluentButton IconStart="@(new Icons.Regular.Size20.PersonAdd())"
                  Appearance="Appearance.Accent">

        Neuer Benutzer
    </FluentButton>
</a>

from fast-blazor.

MarvinKlein1508 avatar MarvinKlein1508 commented on June 1, 2024

The icon is still there but it has the same color as the accent FluentAnchor for some reason

from fast-blazor.

dvoituron avatar dvoituron commented on June 1, 2024

Yep... reason why I added .WithColor(Color.Fill) in my example.

But you can choose you better solution :-)

from fast-blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.