radioInput: Radio inputs

View source: R/input-radio.R

radioInputR Documentation

Radio inputs

Description

A stylized radio input. A reactive input with multiple choices where only one choice and value at most may be selected.

Usage

radioInput(
  ...,
  id,
  choices = NULL,
  values = choices,
  selected = values[[1]],
  inline = FALSE
)

updateRadioInput(
  id,
  choices = NULL,
  values = choices,
  selected = NULL,
  inline = FALSE,
  enable = NULL,
  disable = NULL,
  valid = NULL,
  invalid = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

choices

A character vector or list of tag elements specifying the input's choices.

values

A character vector, list of character strings, vector of values to coerce to character strings, or list of values to coerce to character strings specifying the values of the radio input's choices, defaults to choices.

selected

One of values indicating the default selected value of the radio input, defaults to NULL, in which case the first choice is selected by default.

inline

If TRUE, the radio input renders inline, defaults to FALSE, in which case the radio controls render on separate lines.

See Also

Other inputs: checkbarInput(), chipInput(), fileInput(), formInput(), input_button(), input_checkbox(), listGroupInput(), menuInput(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/yonder documentation built on June 12, 2025, 3:49 a.m.