Layout options

Button groups can be laid in two directions, horizontal or vertical.

buttonGroupInput(
  .style %>%
    background("primary"),
  id = NULL,
  choices = c("Grape", "Raspberry", "Kiwi")
)

Vertical button groups can help fill available space.

buttonGroupInput(
  .style %>%
    background("primary"),
  id = NULL,
  choices = c("Cherry", "Apple", "Pear")
)
buttonGroupInput(
  id = "group1",
  choices = c("Once", "Twice", "Thrice"),
  values = c(1, 2, 3)
)

Styling the button group

buttonGroupInput(
  .style %>%
    background("primary"),
  id = "group2",
  choices = c("Button 1", "Button 2", "Button 3")
)


nteetor/dull documentation built on June 10, 2022, 11:30 a.m.