Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.note
NotificationsYou must be signed in to change notification settings

rstudio/bslib

Repository files navigation

CRAN statusbslib status badgeR build status

Thebslib R package provides a modern UI toolkit forShiny andRMarkdown based onBootstrap. It facilitates:

  • Creation of delightful and customizableShinydashboards.
    • The underlying UI components (e.g.,cards,valueboxes,sidebars,etc) are also designed to work in other contexts (e.g., in RMarkdown).
  • Customtheming ofShiny apps and R Markdown documents.
    • Apps can even be themed interactively in real-time.
  • Use of modern versions of Bootstrap andBootswatch
    • Shiny and R Markdown currently default to Bootstrap 3 and maycontinue to do so to maintain backwards compatibility.

Installation

Install thebslib package from CRAN as follows:

install.packages("bslib")

An example

The quickest way to see what{bslib} can do is to runbslib::bs_theme_preview() at the console. This launches a demo appcontaining both{bslib} and{shiny} UI components as well as antheming widget (bslib::bs_themer()) overlaid on the app. Seereal-timethemingto learn more.

An animation showing bslib theming app. As the user changes the Bootswatch theme and Bootstrap settings, the app's appearance changes in real-time.

Get started

Since{bslib} covers a wide array of uses, it has numerous gettingstarted articles, each focusing on a particular interest:

Getting help

There are two main places to get help withbslib:

  • TheRStudio community is a friendly placeto ask any questions (be sure to add abslib tag when creating atopic).

  • Stack Overflow isa great source of answers to commonbslib questions. It is also agreat place to get help, once you have created a reproducible examplethat illustrates your problem. Use the tags[r][bslib] ifyou ask a question. Add the tag[bslib] if you are using a Shinyruntime.

Code of Conduct

Please note that the bslib project is released with aContributor CodeofConduct.By contributing to this project, you agree to abide by its terms.


[8]ページ先頭

©2009-2025 Movatter.jp