span() creates a piece of text with its own style. Spans can be
combined with c() and returned from a widget's render function or
passed to label(). Newlines start new lines.
Usage
span(x = "", style = NULL, link = NULL)
# S3 method for class 'termr_text'
c(...)Arguments
- x
Text. A character vector is joined with newlines. May also be spans, to nest styles.
- style
A
style(); only colours and text attributes are used.- link
Optional link target (a URL or any string). Stored as metadata on the text for widgets that support it; not rendered yet.
- ...
Spans or character strings to combine.