Displays text with support for Rich markup for colours, bold, italic, etc.
Examples
if (FALSE) { # \dontrun{
quick_app(
layout = vstack(
static("[bold red]Error:[/bold red] Something went wrong"),
static("[green]Status:[/green] All systems operational"),
static("[bold cyan]Score:[/bold cyan] 42", id = "score"),
id = "root"
),
# Update rich text from a handler
on_click = list(
btn = function(event, state) {
update(state$app, "score",
content = "[bold cyan]Score:[/bold cyan] 100")
state
}
)
)
} # }
