@vaadin/checked-state-mixin

This package provides CheckedStateMixin that does the following:

Usage no npm install needed!

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

README

@vaadin/checked-state-mixin

This package provides CheckedStateMixin that does the following:

  1. Add checked property (boolean, false by default, reflects to attribute)

  2. Toggle aria-checked attribute when checked property changes

  3. Dispatch checked-changed event when checked value is changed