https://router-tailwind.shiny-templates.dev
shiny.router and shiny.tailwind
A basic setup with an organized router, as well as using Tailwind v3 in favor of bootstrap.
install.packages(c("shiny", "shiny.router", "shiny.tailwind", "vroom", "dplyr", "ggplot2", "forcats"))
Read data:
library(vroom)
injuries <- vroom("src/routes/neiss/data/injuries.tsv.gz", delim = "\t")
products <- vroom("src/routes/neiss/data/products.tsv", delim = "\t")
population <- vroom("src/routes/neiss/data/population.tsv", delim = "\t")
Then run the shiny app by Control + Shift + Enter
Native Shiny components (tabsetPanel() for example) still use bootstrap and won't react to tailwind.
Use raw html tags (div, a, tags$footer, etc) where you want tailwind.