Creates a br-sign-in button that behaves like a Shiny action
button: the server observes input$<inputId> to count clicks.
Usage
br_signin(inputId, label = "Entrar", type = c("secondary", "primary"))Examples
if (interactive()) {
ui <- shiny::fluidPage(
use_govbr(),
shinyGovBRstyle::br_layout(
shinyGovBRstyle::br_signin("entrar", "Entrar", type = "primary")
)
)
server <- function(input, output, session) {
shiny::observeEvent(input$entrar, shiny::showNotification("Entrar!"))
}
shinyApp(ui = ui, server = server)
}
