Examples for 'bslib::as_fill_carrier'


Test and/or coerce fill behavior

Aliases: as_fill_carrier as_fillable_container as_fill_item remove_all_fill is_fill_carrier is_fillable_container is_fill_item

Keywords:

### ** Examples

## Don't show: 
if (rlang::is_interactive()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
## End(Don't show)
library(shiny)
shinyApp(
  page_fillable(
    # without `as_fill_carrier()`, the plot won't fill the page because
    # `uiOutput()` is neither a fillable container nor a fill item by default.
    as_fill_carrier(uiOutput("ui"))
  ),
  function(input, output) {
    output$ui <- renderUI({
      div(
        class = "bg-info text-white",
        as_fill_item(),
        "A fill item"
      )
    })
  }
)
## Don't show: 
}) # examplesIf
## End(Don't show)

[Package bslib version 0.8.0 Index]