I need to create an TextInput (Shiny) with an icon inside it (like placeholder) without css and javascript.
I've already done this using the textInputIcon function, as below:
shinyWidgets::textInputIcon(inputId = ns("txt_username"),
label = "",
placeholder = "Usuário",
icon = shiny::icon("user")
)
However, I didn't find in the documentation any way to use the same component for text which input is a password, since it is necessary to show the typed characters hidden.
The passwordInput function (from shiny) automatically hides the characters, but I couldn't put an icon beside it.
shiny::passwordInput(inputId = ns("txt_password"),
placeholder = "Senha",
label = "",
),
Does anyone know any alternative for me to have the same result only with the hidden characters?