@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A read-only rich text renderer.

    Displays HTML or Markdown content inline without any editing chrome. Used by the form engine for flair:richtext elements and anywhere rich content needs to be rendered.

    The strategy input controls how content is interpreted:

    • 'auto' (default) — detects HTML vs Markdown automatically.
    • 'html' — always treats content as HTML.
    • 'markdown' — always converts Markdown to HTML first.
    <ui-rich-text-view [content]="'<p>Hello <strong>world</strong></p>'" />
    <ui-rich-text-view strategy="markdown" [content]="'# Hello\n**world**'" />
    Index

    Constructors

    Properties

    ariaLabel: InputSignal<string> = ...

    Accessible label for the container.

    content: ModelSignal<string> = ...

    The raw content to render (HTML or Markdown depending on strategy).

    dataDetectors: InputSignal<readonly IDataDetector[] | null> = ...

    Optional detector list to apply to rendered text nodes.

    When omitted, the component falls back to injected detectors and finally to the foundation-level global detector registry.

    strategy: InputSignal<RichTextViewStrategy> = ...

    Controls how content is interpreted.

    • 'auto' — auto-detect HTML vs Markdown (default).
    • 'html' — always render as HTML.
    • 'markdown' — always convert Markdown → HTML first.
    trustedContent: Signal<SafeHtml> = ...

    The HTML to render, resolved from content + strategy.