jonmcalder / bsutils

Utilities for Bootstrap 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bsutils

UI utilities for Bootstrap 5 and Shiny.

Installation

# install.packages("devtools")
devtools::install_github("JohnCoene/bsutils")

Utilities

  • Accordion
  • Alerts
  • Card
  • Carousel
  • Collapse
  • Dropdown
  • Offcanvas
  • Progress

Example

Run bsutils::gallery() for a demo.

Make sure you use Bootstrap version 5.

library(shiny)
library(bsutils)

ui <- fluidPage(
  theme = bslib::bs_theme(version = 5L),
  offcanvasButton(
    offcanvasContent(
      offcanvasHeader(
        "Off canvas"
      ),
      p(
        "Hello world"
      )
    ),
    "Open"
  )
)

server <- \(input, output, session){

}

shinyApp(ui, server)

About

Utilities for Bootstrap 5

License:Other


Languages

Language:R 96.0%Language:JavaScript 3.2%Language:Makefile 0.8%