README.md

bsutils

UI utilities for Bootstrap 5 and Shiny.

Installation

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

Utilities

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),
  offcanvas(
    offcanvasButton(
      "Open"
    ),
    offcanvasContent(
      offcanvasHeader(
        "Off canvas"
      ),
      p(
        "Hello world"
      )
    )
  )
)

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

shinyApp(ui, server)


JohnCoene/bsutils documentation built on June 15, 2024, 3:21 a.m.