# NOT RUN {
### Simple character string addon
# This input will always append a "@".
groupInput(
id = "group1",
left = "@",
placeholder = "Username"
)
### Text input and button combo
groupInput(
id = "group2",
placeholder = "Search terms",
right = buttonInput(
id = "button2",
label = "Go!"
) %>%
background("grey") %>%
border()
)
### Combination addon
groupInput(
id = "group3",
left = c("$", "0.")
)
### Two addons
groupInput(
id = "group4",
left = "@",
placeholder = "Username",
right = buttonInput(
id = "button4",
label = "Search"
) %>%
background("blue")
)
# }
Run the code above in your browser using DataLab