Learn R Programming

inshiny (version 0.1.1)

inline: Container for inline widgets

Description

Wrapper for a line (or paragraph) containing a mix of explanatory text and inshiny inline widgets.

Usage

inline(..., class = "mb-1")

Value

An HTML element to be included in your Shiny UI definition.

Arguments

...

Unnamed arguments: Inline widgets (such as inline_text()), character strings, or HTML tags that will appear next to each other in a line or paragraph. These are pasted together with no spaces between them, so add extra spaces to your character strings if needed. Named arguments (e.g. style) are additional attributes for the HTML div tag wrapping the line.

class

Extra classes to apply to the line. The default, "mb-1", is a Bootstrap 5 class that adds a small amount of margin to the bottom of the line. You can use "mb-0" through "mb-5", other Bootstrap 5 spacing classes, or anything else. For multiple classes, provide one space-separated string.

Examples

Run this code
ui <- bslib::page_fixed(
    shiny::h1("Hello!"),
    inline("My name is ", inline_text("myname", "Sisyphus"), "."),
    inline("Please enter your name carefully.", style = "font-weight:bold")
)

Run the code above in your browser using DataLab