Changelog
Source:NEWS.md
bslibreact (development version)
The vendored bundle’s
PageFillableaccepts a CSS length string forpaddingandgap, such as"1rem".paddingalso takes one to four values, as a string ("0 16px") or an array ([0, 16]). A number is still pixels.The vendored bundle’s
PageFillableno longer defaultspaddingandgapto 12px, matchingbslib::page_fillable(). A client with no build step that reads it fromwindow.bslibreactgets the theme’s own spacing unless it passes both.
bslibreact 0.1.0
First release. The package is experimental: the three functions below are what it exports, and their signatures may still change.
page_deps()renders a sample of bslib and shiny markup under a theme and returns thehtmlDependency()objects that markup attaches, so a shinyreact client can be served the same CSS and JavaScript a matching bslib page would have attached on its own."bootstrap"and"jquery"are left out, since a shiny page already carries both, and each remaining dependency is returned once.host_input()renders a shiny input server-side into an output the React client displays, for the widgets that have no dedicated component. The output is named with a_uisuffix, which the client’s ownidhas to match, and keeps rendering while hidden, as the Pythonhost_input()does.bslibreact_dep()returns thehtmlDependency()for the vendoredbslibreact.jsbundle, for a client with no build step that reads the kit aswindow.bslibreact. Attach it after shinyreact’s own dependency: the bundle readswindow.shinyreactas it evaluates.