
Render a spec_ui_descriptor into bslib Shiny UI cards
Source: R/ui-synthesize.R
render_spec_controls_ui.RdRender a spec_ui_descriptor into bslib Shiny UI cards
Arguments
- descriptor
A
spec_ui_descriptorreturned byspec_to_controls().- ns
Namespace function (typically
session$nsinside a module).- diff
Optional
spec_diffobject used to highlight changed sections and controls with visual diff badges.
Value
An htmltools::tagList of bslib::card() elements.
Examples
desc <- spec_to_controls(new_spec_ir())
ui_cards <- render_spec_controls_ui(desc)
inherits(ui_cards, "shiny.tag.list")
#> [1] TRUE