A listbox control with Wired hand-drawn styling. The selected item is highlighted. Can be vertical (default) or horizontal.
For demo and view the complete set of wired-elememts: wiredjs.com
Add wired-listbox to your project:
npm i wired-listbox
Import wired-listbox definition into your HTML page:
Or into your module script:
Use it in your web page:
Number OneNumber TwoNumber ThreeNumber OneNumber TwoNumber Three
horizontal - Boolean indicated if the items are layed out horizontally. Default is false.
selected - Value of the selected item.
Custom CSS Variables
--wired-item-selected-bg Background color of the selected item.
--wired-item-selected-color Text color of the selected item.
selected event fired when an item is selected by the user.