@vaadin/keyboard-direction-mixin

This package provides KeyboardDirectionMixin that does the following:

Usage no npm install needed!

<script type="module">
  import vaadinKeyboardDirectionMixin from 'https://cdn.skypack.dev/@vaadin/keyboard-direction-mixin';
</script>

README

@vaadin/keyboard-direction-mixin

This package provides KeyboardDirectionMixin that does the following:

  1. Add keydown listener on the element

  2. Navigate through items via arrow keys, Home and End

The mixin accepts a class that must apply SlottedItemsMixin.