express.render.ui
express.render.ui()
Reactively render HTML content.
Returns
Type | Description |
---|---|
A decorator for a function that returns an object of type TagChild . |
Tips
The name of the decorated function (or @output(id=...)
) should match the id
of a output_ui
container (see output_ui
for example usage).
See Also
output_ui
Examples
#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400
## file: app.py
from shiny import reactive
from shiny.express import input, render, ui
ui.input_action_button("add", "Add more controls")
@render.ui
@reactive.event(input.add)
def moreControls():
return [
ui.input_slider("n", "N", min=1, max=1000, value=500),
ui.input_text("label", "Label"),
]