R/components-input.R
mcp_select.Rd
Generates a dropdown select element with MCP data attributes.
mcp_select(id, label, choices, selected = choices[[1]])
Input ID
Display label
Character vector of choices. If named, names are used as display labels and values as the option values.
The initially selected value. Defaults to the first choice.
An htmltools::tag object