inst/examples/bodyClassName/ui.R

library(shiny)
library(shinyToastify)

CSS <- HTML(
  ".bodystyle {",
  "  font-size: 30px;",
  "  font-family: cursive;",
  "}"
)

shinyUI(
  fluidPage(
    useShinyToastify(),
    tags$head(tags$style(CSS)),
    br(),
    helpText("This example illustrates the 'bodyClassName' option."),
    br(),
    actionButton("btn", "Show toast", class = "btn-primary btn-lg")
  )
)

Try the shinyToastify package in your browser

Any scripts or data that you put into this service are public.

shinyToastify documentation built on July 31, 2021, 5:06 p.m.