This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

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

Content RenderFragment
The fragment that emits this content; a no-op when default-constructed.

Constructors

MarkupContent

#
public MarkupContent(string html)

Wraps a raw HTML/markup string.

Parameters

html string

MarkupContent

#
public MarkupContent(RenderFragment fragment)

Wraps a RenderFragment.

Parameters

fragment RenderFragment

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)
; }