blazor mbutton
时间: 2023-12-29 17:04:03 浏览: 35
Blazor MButton is a component in Blazor, a web framework by Microsoft, that represents a material design button. It is part of the Material-UI for Blazor library and provides a pre-styled button with various customization options.
To use the MButton component in your Blazor application, you need to first install the Material-UI for Blazor library. You can do this by adding the following NuGet package to your project:
```
dotnet add package Material.Blazor
```
Once you have the library installed, you can use the MButton component by adding the following code to your Blazor Razor component:
```csharp
@using Material.Blazor
<MButton>Click me!</MButton>
```
This will render a material design button with the label "Click me!". You can further customize the button by using additional properties provided by the MButton component.
Please note that Blazor MButton is not a built-in component in Blazor itself, but rather an extension provided by the Material-UI for Blazor library.