Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-y-company/bsutils
Utilities for Bootstrap 5
https://github.com/the-y-company/bsutils
Last synced: about 2 months ago
JSON representation
Utilities for Bootstrap 5
- Host: GitHub
- URL: https://github.com/the-y-company/bsutils
- Owner: the-y-company
- License: other
- Created: 2022-04-30T18:43:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T11:00:19.000Z (7 months ago)
- Last Synced: 2024-08-03T03:01:54.646Z (5 months ago)
- Language: R
- Size: 66.4 KB
- Stars: 31
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - bsutils - UI utilities for Bootstrap 5 and Shiny. (UI Components / Bootstrap)
- jimsghstars - the-y-company/bsutils - Utilities for Bootstrap 5 (R)
README
# bsutils
UI utilities for Bootstrap 5 and Shiny.
## Installation
``` r
# install.packages("devtools")
devtools::install_github("JohnCoene/bsutils")
```## Utilities
- Accordion
- Alerts
- Badge
- Card
- Carousel
- Collapse
- Color input
- Dropdown
- Floating select input
- Floating text input
- Floating textarea input
- List group
- Modal
- Offcanvas
- Placeholder
- Popover
- Progress
- Range input
- Switch input
- Text group input
- Toast
- Tooltip## Example
Run `bsutils::gallery()` for a demo.
Make sure you use __Bootstrap version 5__.
```r
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)
```