Skip to contents

Generates a set of radio buttons with MCP data attributes.

Usage

mcp_radio(id, label, choices, selected = choices[[1]])

Arguments

id

Input ID

label

Display label

choices

Character vector of choices. If named, names are used as display labels and values as the radio values.

selected

The initially selected value. Defaults to the first choice.

Value

An htmltools::tag object