# Basic option
calcite_option(
label = "First Option",
value = "1"
)
# Selected option
calcite_option(
label = "Default Selection",
value = "default",
selected = TRUE
)
# Disabled option
calcite_option(
label = "Unavailable",
value = "unavailable",
disabled = TRUE
)
# Use with calcite_select
calcite_select(
id = "my_select",
label = "Choose one",
calcite_option(label = "Option 1", value = "1"),
calcite_option(label = "Option 2", value = "2", selected = TRUE),
calcite_option(label = "Option 3", value = "3")
)
Run the code above in your browser using DataLab