Select Option

Description

Create one option for bc_select().

Usage

bc_select_option(value, label = NULL)

Arguments

Argument Description
value String. The option's value.
label String. The text shown. Defaults to value.

Value

A list with value and label.

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"
)