I am trying to horizontally align an actionButton with a textInput field.
Since the "next_question" actionButton and the "correct" textInput field are in the same fluidRow I thought they would be horizontally aligned. They are not.
Also, I thought choosing a higher column number for the "yup" box would move it further to the right. Again, not the case.
What am I missing?
library(shiny)
shinyApp(
ui = fluidPage(
sidebarLayout(
sidebarPanel(
textInput("answer", width = "50px", label = "Answer"),
fluidRow(
column(2, actionButton(inputId = "next_question", label = "Next")),
column(8, textInput(inputId = "correct", width = 30, label = "yup"))
)
),
mainPanel(
# Equation
textOutput("equation")
))),
server = function(input, output, session){}
)