20 lines
638 B
Plaintext
20 lines
638 B
Plaintext
@if (string.IsNullOrEmpty(Text))
|
|
{
|
|
<span class="text-muted small">No detail recorded.</span>
|
|
}
|
|
else
|
|
{
|
|
<details class="diagnostic-details">
|
|
<summary>@Summary</summary>
|
|
<pre class="mono small" role="region" tabindex="0" aria-label="@Summary">@Text</pre>
|
|
</details>
|
|
}
|
|
|
|
@code {
|
|
/// <summary>The domain-specific label for this native disclosure and its full diagnostic text.</summary>
|
|
[Parameter] public string Summary { get; set; } = "Full details";
|
|
|
|
/// <summary>Complete diagnostic text rendered as escaped text, never executable markup.</summary>
|
|
[Parameter] public string? Text { get; set; }
|
|
}
|