Is it possible to adjust space around specific instances of radioGroupButtons
and fileInput
?
For example, how could the fileInput1 and radioGroupButtons1 be made stacked and immediately adjacent to each other?
library(shiny)
library(shinyWidgets)
library(bslib)
# UI
ui = page_fillable(
fileInput("fileInput1", label = NULL),
radioGroupButtons("radioGroupButtons1", choices = c("TSV", "CSV", "XLSX")),
fileInput("fileInput2", label = NULL),
radioGroupButtons("radioGroupButtons2", choices = c("PDF", "PNG", "JPEG"))
)
# Server
server = function(input, output, session)
{
}
shinyApp(ui, server)
2
Answers
smartse reminded me there is a progress bar at the bottom of the
fileInput
element. The arrangement I was looking for can be achieved by adjusting itsmargin
:I’m not sure if this is what you mean. It could maybe do with more tweaking to adjust the whitespace between them too but the progress bar shows up beneath when the file is uploaded.
Credit to CSS Positioning Elements Next to each other