# Static message
calcite_input_message(
"Username is available",
status = "valid",
icon = TRUE
)
# Dynamic message with textOutput
calcite_input_message(
shiny::textOutput("validation_msg"),
status = "invalid",
icon = "exclamation-mark-circle",
id = "msg"
)
# With input in a label
calcite_label(
label = "Username",
calcite_input_text(
id = "username",
placeholder = "Enter username"
),
calcite_input_message(
"Username must be 3-20 characters",
status = "idle"
)
)
Run the code above in your browser using DataLab