Repository navigation
slab-elements@0.1.2
Patch Changes
-
#11
e5b3ee2Thanks @ynotdraw! - Combobox takesmultiple. Each selected Option is shown before the input as a tag, a button that removes it, and choosing an Option toggles it and leaves the listbox open. Backspace in an empty input removes the last tag, and Left at the start of the input moves to the tags.valuesreads and sets every selected value, in the order they were chosen, and each is submitted as its own entry, as a<select multiple>submits them. Style the tags with::part(tag)and::part(tags), and name their buttons withremoveLabel. -
#9
7c4e2c7Thanks @ynotdraw! - Adds Toggle Group,slab-toggle-group, and itsslab-toggle-group-button: a row of toggle buttons that Tab reaches once and the arrow keys move between. One button is pressed at a time, or several withmultiple. Setpressedon a button that starts out pressed; the group handlesaria-pressed.valueandvaluesread and set which are pressed.