Creates a br-input text field bound as a standard Shiny text
input (input$<inputId> returns the text).
Usage
br_text_input(
inputId,
label,
placeholder = NULL,
value = "",
hint = NULL,
disabled = FALSE
)Examples
if (interactive()) {
ui <- shiny::fluidPage(
use_govbr(),
shinyGovBRstyle::br_text_input(
inputId = "nome",
label = "Nome",
placeholder = "Digite seu nome",
hint = "Texto auxiliar para prevenir erros"
),
shiny::verbatimTextOutput("valor")
)
server <- function(input, output, session) {
output$valor <- shiny::renderPrint(input$nome)
}
shinyApp(ui = ui, server = server)
}
