Drop-in shiny::selectInput() for the glass theme preset. The client applies
the change immediately via window.shinyglass.setPreset() (marked with
data-glass-preset-input), so Light/Dark/Auto works even when custom
messages are delayed or rewritten (e.g. on some shinyapps.io hosts). Pair
with observe_glass_preset_input() so the server stays in sync.
Arguments
- inputId
The
inputslot that will be used to access the value.- label
Display label for the control (or
NULLfor none).- selected
Initially selected mode (
"light","dark", or"auto").- choices
Named character vector of choices. Defaults to Light / Dark / Auto (OS). Names are labels; values must be
light,dark, and/orauto.- width
The width of the input (e.g.
"100%").
Value
A shiny::selectInput() tag (with glass client bindings).