Class
Sealed
public sealed class BlazorPreviewResult
Namespace: Moka.Docs.Serve
The result of rendering a Blazor component preview.
Properties
| Name | Description |
|---|---|
Error |
Error message if rendering failed. Null if successful. |
Html |
The rendered HTML preview. Null if an error occurred. |
Error
string? BlazorPreviewResult.Error { get; init; }
Error message if rendering failed. Null if successful.
Html
string? BlazorPreviewResult.Html { get; init; }
The rendered HTML preview. Null if an error occurred.
View Source
/// <summary>
/// The result of rendering a Blazor component preview.
/// </summary>
public sealed class BlazorPreviewResult
{
/// <summary>The rendered HTML preview. Null if an error occurred.</summary>
public string? Html { get; init; }
/// <summary>Error message if rendering failed. Null if successful.</summary>
public string? Error { get; init; }
}