| TextField.shinyInput | R Documentation |
Visit the documentation at https://mui.com/api/Text-Field/ for more information.
TextField.shinyInput(inputId, ..., value = defaultValue)
inputId |
the shiny input id |
... |
args to pass to element |
value |
the default value of the element |
library(shiny.mui)
library(shiny)
if (interactive()) {
shinyApp(
ui = div(
TextField.shinyInput("text", fullWidth = T, value = "go", variant="standard", multiline = T),
textOutput("textValue")
),
server = function(input, output) {
output$textValue <- renderText({
sprintf("Value: %s", input$text)
})
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.