MarkupContent Pennington.UI
A chrome content value that is either a raw HTML/markup string or a RenderFragment. Implicitly converts from both, so consumers assign a string or a fragment directly; render it via Content. Strings are emitted as raw markup, not markdown-processed.
Properties
ContentRenderFragment- The fragment that emits this content; a no-op when default-constructed.
Constructors
Pennington.UI.MarkupContent
namespace Pennington.UI;
/// A chrome content value that is either a raw HTML/markup string or a RenderFragment. Implicitly converts from both, so consumers assign a string or a fragment directly; render it via Content. Strings are emitted as raw markup, not markdown-processed.
public struct MarkupContent
{
/// The fragment that emits this content; a no-op when default-constructed.
public RenderFragment Content { get; }
/// Wraps a raw HTML/markup string.
public MarkupContent(string html)
;
/// Wraps a RenderFragment.
public MarkupContent(RenderFragment fragment)
;
}