Skip to contents

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 input slot that will be used to access the hex value.

label

Display label (or NULL for none).

selected

Initially selected well: a name in colors or a hex string.

colors

Named character vector of hex colors. Defaults to glass_system_colors().

Value

A Shiny UI tag hierarchy.