Compact row of color wells. The client applies window.shinyglass.setPrimary()
immediately; the value is also a Shiny input (input[[inputId]]) so the
server can persist or restyle plots. Pair with observe_glass_accent() if
you also want update_glass_theme() to echo the change.
Usage
glass_accent_input(
inputId = "glass_accent",
label = "Accent",
selected = "blue",
colors = glass_system_colors()
)Arguments
- inputId
The
inputslot that will be used to access the hex value.- label
Display label (or
NULLfor none).- selected
Initially selected well: a name in
colorsor a hex string.- colors
Named character vector of hex colors. Defaults to
glass_system_colors().