With swagger, you can automatically create documentation of your API methods based on the comments.
Is it possible to do the same, but for Blazor components?
If you are referring to the parameters for a Blazor component and you are wanting documentation (i.e. intellisense summary) then yes. In Visual Studio if you structure the code as follows it should show up when users reference the parameter from another Blazor component.
/// <summary>
/// Here is the description of the parameter InputValue and what it is used for
/// </summary>
[Parameter]
public string InputValue { get; set; }
In Visual Studio if you type ///
it should auto-generate the format for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With