@vaadin/orientation-mixin

This package provides OrientationMixin that does the following:

Usage no npm install needed!

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

README

@vaadin/orientation-mixin

This package provides OrientationMixin that does the following:

  1. Add orientation property (string, horizontal by default, reflects to attribute)

  2. Toggle aria-orientation attribute when orientation property changes