Select Option

Description

A helper function to create individual select options.

Usage

bc_select_option(value, label = NULL)

Arguments

Argument Description
value String. The value of the option.
label String. The display label for the option.

Value

A list containing option properties.

Examples

bc_select_option("dark", "Dark")
#> $value
#> [1] "dark"
#> 
#> $label
#> [1] "Dark"

bc_select(
  bc_select_option("us-east-1", "US East"),
  bc_select_option("eu-west-1", "EU West"),
  placeholder = "Region"
)