shiny.render.text#

shiny.render.text(fn: Union[Callable[[], Optional[str]], Callable[[], Awaitable[Optional[str]]]]) shiny.render._render.RenderText#
shiny.render.text() Callable[[Union[Callable[[], Optional[str]], Callable[[], Awaitable[Optional[str]]]]], shiny.render._render.RenderText]

Reactively render text.

Return type

A decorator for a function that returns a string.

Tip

This decorator should be applied before the @output decorator. Also, the name of the decorated function (or @output(id=...)) should match the id of a output_text() container (see output_text() for example usage).

See also

output_text