ui.output_markdown_stream

ui.output_markdown_stream(
    id,
    *,
    content='',
    content_type='markdown',
    auto_scroll=True,
    width='min(680px, 100%)',
    height='auto',
)

Create a UI element for a MarkdownStream.

This function is only relevant for Shiny Core. In Shiny Express, use ui to create the UI element.

Parameters

id : str

A unique identifier for the UI element. This id should match the id of the MarkdownStream instance.

content : TagChild = ''

A string of content to display before any streaming occurs. When content_type is Markdown or HTML, it may also be UI element(s) such as input and output bindings.

content_type : StreamingContentType = 'markdown'

The content type. Default is “markdown” (specifically, CommonMark). Supported content types include: - "markdown": markdown text, specifically CommonMark - "html": for rendering HTML content. - "text": for plain text. - "semi-markdown": for rendering markdown, but with HTML tags escaped.

auto_scroll : bool = True

Whether to automatically scroll to the bottom of a scrollable container when new content is added. Default is True.

width : CssUnit = 'min(680px, 100%)'

The width of the UI element.

height : CssUnit = 'auto'

The height of the UI element.

Examples

Loading...