| useNS | R Documentation | 
Simple website notifications with effects
useNS()
notice(
  message = "Hello",
  type = "notice",
  layout = "growl",
  effect = "jelly",
  session = getDefaultReactiveDomain()
)
| message | Notification message. | 
| type | Notification type. Defaults to  
 | 
| layout | Notification layout. Defaults to  
 | 
| effect | Notification effect type. Valid values include: 
 | 
| session | Shiny session object. | 
None
useNS: Dependencies to include in your UI.
notice: Display notifications.
if (interactive()) {
library(shiny)
library(standby)
ui <- fluidPage(
  useNS(), # include dependencies
  actionButton(inputId = "btn",
               label   = "Notice Demo")
)
server <- function(input, output, session) {
  observeEvent(input$btn, {
    # display notification
    notice("Hey there! Thank you for exploring standby!")
  })
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.