ui.output_text_verbatim
id, placeholder=False) ui.output_text_verbatim(
Create a output container for some text.
Place a text
result in the user interface. Differs from output_text
in that it wraps the text in a fixed-width container with a gray-ish background color and border.
Parameters
Returns
: Tag
-
A UI element
See Also
Example
See output_text
Examples
#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400
## file: app.py
from shiny import App, Inputs, Outputs, Session, render, ui
app_ui = ui.page_fluid(
ui.input_text("caption", "Caption:", "Data summary"),
ui.output_text_verbatim("value"),
)
def server(input: Inputs, output: Outputs, session: Session):
@render.text
def value():
return input.caption()
app = App(app_ui, server)