huh icon indicating copy to clipboard operation
huh copied to clipboard

feat: disabled options

Open gabrielchl opened this issue 10 months ago • 0 comments

summary:

  • add disabled options (used in select and multi-select components)
  • these options will be rendered (including the filtered list), but un-toggle-able
    • select: you can't select that option
    • multi-select: you can't toggle that option
  • color-wise, they use the same color description does

(i'm not sure how the gif is best generated for the readme)

example usage:

huh.NewOption("Charm Sauce (sorry, we've run out!)", "Charm Sauce").Disabled(true),

example form question:

Toppings:
> [ ] Lettuce
  [ ] Tomatoes
  [ ] Charm Sauce (sorry, we've run out!)
  [ ] Nutella

example GIF: Untitled

closes #77

gabrielchl avatar Apr 21 '24 01:04 gabrielchl