Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletKuro authored May 29, 2024
1 parent b18a875 commit 6f27881
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ To use an icon in your MudBlazor component, you can use the `<MudIcon>` componen
```

This will render an icon representing a database, using the Material Symbols Outlined style.

## Using Aliases

If you prefer not to use the full qualifier every time, you can create an alias in `_Imports.razor` by adding the following line:

```razor
@using MaterialSymbols = MudBlazor.FontIcons.MaterialSymbols
```

This allows you to access the icons like this:

```html
<MudIcon Icon="@MaterialSymbols.Outlined.Database"></MudIcon>
```

**NB!** Please note that aliases do not work in normal Razor pages (https://github.com/dotnet/razor/issues/7670)!

0 comments on commit 6f27881

Please sign in to comment.