Skip to contents

A dataset containing example key-value pairs that can be used to demonstrate the inp_dropdown function. This provides a convenient way to test dropdown functionality without needing to create sample data.

Usage

kvs

Format

A named list with various types of values:

colors

Character vector of color names

numbers

Numeric values from 1 to 10

options

Logical values (TRUE/FALSE)

categories

Factor levels for categorical data

Examples

if (FALSE) { # \dontrun{
# Create a dropdown input using the kvs dataset
inp_dropdown(kvs$colors, label = "Select a color")

# Create a dropdown with numbers
inp_dropdown(kvs$numbers, label = "Choose a number", width = 3)
} # }